Subject: Re: [stella] Euchre: a tight fit|
From: "Erik J. Eid" <eeid@xxxxxxxxx>
Date: Mon, 17 Sep 2001 21:41:23 -0400
You can save a fair bit by junking the LetterImageTable and calculating the address instead of looking it up. This requires the letters to be defined in a set order, but that's not a big limitation. Replace...
GetLetterImage txa asl tax lda LetterImageTable,x sta $00,y lda LetterImageTable+1,x sta $01,y rts
GetLetterImage txa asl asl asl adc #<LetterImageSpace sta 0,y lda #>LetterImageSpace adc #0 ; can be omitted if LetterImage stuff doesn't cross a page sta 1,y rts
This loses 1 byte in the routine, but junks the LetterImageTable, saving a total of 65 bytes or so.
- Archives (includes files) at http://www.biglist.com/lists/stella/archives/ Unsub & more at http://www.biglist.com/lists/stella/