I can't seem to understand how to I make it
I have been trying to use it this way:
MOV @RO,1 INC R0 MOV @R0,2 DEC R0 ;to point back to the 1st value
and it should save value 1 and 2, but it ends up making weird things
any help? Thanks
You're moving the value from address 1 and 2. If you want to move the immediate value, you'll have to write #1 and #2, see: http://www.keil.com/support/man/docs/is51/is51_mov.htm
yes, I made a mistake when I was writing here, but the problem is that it seems to be threating r0 and @r0 the same way for some reason