We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
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
the post above makes me think that if Jim Houser is totally new to this he might think tha sequence writes to XDATA which it does not.
again, if Jim Houser is totally new to this he must read "the bible" www.8052.com/.../120112
Erik