Re: [stella] Qb: v1.00 (alpha #1)

Subject: Re: [stella] Qb: v1.00 (alpha #1)
From: "Andrew Davie" <adavie@xxxxxxxxxxxxx>
Date: Wed, 28 Feb 2001 12:10:17 +1100
Just in case anybody is optimising on my behalf....  the job of
CheckCompletion() has now been merged into MoveCubes - about an 8 byte
saving.  There's a new subroutine, doing some commonly-done stuff...

GetGridIndex

        lda CubeYDir,x
        and #15
        tay
        lda Div5,y
        tay

        lda CubeX,x
        and #31
        cmp #16
        bcc GL16
        lda #15
GL16    tax
        lda Div5,x
        tax

        rts

The above is now called wherever possible (about 3 spots).
Total savings: about 40 bytes.  I'm now at FFC7

Cheers
A

--
 _  _  _| _ _        _| _    * _                               _  ,
(_|| )(_|( (/_\/\/  (_|(_|\/(_(/_                           ,~' L_|\
                                                         ,-'        \
see my Museum of Soviet Calculators at                  (            \
http://www.taswegian.com/MOSCOW/soviet.html              \    __     /
                                                          L,~'  "\__/
                                                              @--> v



-
Archives (includes files) at http://www.biglist.com/lists/stella/archives/
Unsub & more at http://www.biglist.com/lists/stella/

Current Thread