This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Indirect addressing does not work

Hello,
I am having a problem with register indirect addressing on the 8051 in assembly.
As the debugger gets to the indirect address it does not put anything in that memory location. I can get this program to work in Proview32 but not in the Keil uVision. I am just using this as a sample program to troubleshoot why I can not get the register indirect addressing to work.

ORG 0000H

MOV A, #24H

MOV R1, #60H

MOV R7, #16

AGAIN: MOV @R1, A

INC R1

DJNZ R7, AGAIN

END

Any help would be much appreciated.

Jim

Parents
  • How does it look in the simulator? This looks right to me, maybe it works and the debugger simply fails to access the memory.

    Or maybe you're just looking at the wrong memory. The memory view can show all kinds of, code, xdata, data. You should look at D:0x60

Reply
  • How does it look in the simulator? This looks right to me, maybe it works and the debugger simply fails to access the memory.

    Or maybe you're just looking at the wrong memory. The memory view can show all kinds of, code, xdata, data. You should look at D:0x60

Children