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

0