HELP!
I have two lines for scores. Right now the second line is the one I need help with. It's showing all six digits. What I want it to do is show only the leftmost and rightmost digits. Here is the code I have for it. Can anyone help?
ldy #7
STY scbrdCnt
ShowGameNumberLoop
LDY <scbrdCnt ;3 [64]
LDA (prevGameNumber),Y ;5 [69] -- scoreboard drawing loop
TAX ;2 [71]
STA WSYNC ;3 [0]
LDA (DigitGameNumberShown),Y ;5 [5]
STA.w GRP0 ;4 [9] -- store digit 0
LDA (prevGameNumber),Y ;5 [69] -- scoreboard drawing loop
STA GRP1 ;3 [17] -- ready to draw digit 0, store digit 1
LDA (DigitGameNumberShown),Y ;5 [69] -- scoreboard drawing loop ;5 [22]
STA GRP0 ;3 [25] -- ready to draw digit 1, store digit 2
LDa (prevGameNumber),Y ;5 [30]
STA <scbrdTmp ;3 [33]
LDa (DigitGameNumberShown),Y
LDY <scbrdTmp ;3 [41] - PIXEL: 55 --- 41 * 3 =-> 123 - 68 = 55
STY GRP1 ;3 *44* -- draw digit 2, store digit 3
STA GRP0 ;3 *47* -- draw digit 3, store digit 4
STX GRP1 ;3 *50* -- draw digit 4, store digit 5
STX GRP0 ;3 [53] - draw digit 5, store junk
;-- cycle 53 --- 53 * 3 =-> 159 - 68 = 91 pixel pos
DEC <scbrdCnt ;5 [58]
bpl ShowGameNumberLoop