Code: Select all
LDA #low (FirstOrSecond + 9)
STA <StringHolder
LDA #high (FirstOrSecond + 9)
STA <StringHolder + 1
LDX #6
JSR WriteStringMy question is, can I use this method but with a variable index? I've tried using Y, but that won't even compile. When I use a variable (something like: (FirstOrSecond + Blah), I get very random output.
Any tips? And no, Blah wouldn't be the real variable name I'd use.