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
UPDATE:
I figured it out, thanks very much for everyone who replied
?ID?TEST SEGMENT IDATA RSEG ?ID?TEST ADDRESS: DSB 16 ?PR?TEST SEGMENT CODE INBLOCK RSEG ?PR?TEST TEST: MOV R1,#ADDRESS MOV R2,#8 loop: MOV @R1,#1 INC R1 MOV @R1,#2 INC R1 DJNZ R2,loop RET
// try this and learn the assembler