I am currently working on a NES(6502) assembly game but I don't understand how to make a sprite move. Here's how I think its supposed to works:
(loop)
LDA $200 ;will load into the A register the content of address $200,wich contain the Y position of my sprite
INA ;Increment the A register which would increment the content of A which is the Y position of my sprite..?
However it seems that you cannot increment the A register accumulator because I get an error when trying to assemble with the INA instruction. So I'm a bit lost into that. Should I use STA instead of LDA? But I want to use the content of the address $200 and not place a value that I choose in it. I don't get how to make my sprite move.