I'm new to assembler programming for the C64 and I have a question about the procedure for saving and loading memory areas. I am concerned with the following:
lda #$01
sta $0400
Puts the letter A to the top left on the screen
ldx #$00
lda #$01
sta $0400, x
with this I can use x register as an counter and can compare how often I will use a loop.
But now I have a 16-Bit calculate (Screen start address plus xxx) and store the result inside a memory address like $4000 und $4001. How can I use this value as the new screen address to print out the letter a on the calculated area on the screen?
OK, now I understand the meaning of (indirect),Y My solution looks now like this: