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

register window not updating for Atmel AT89C51ED2 in uVision 5

Hi,

I am trying to run a simple assembly 8051 program in uVision 5.

While running the program, I found that the register window is not updating while single stepping.

Could you help resolve the issue?

Thanks,

Santosh

Parents
  • While running the program, I found that the register window is not updating while single stepping.

    This is because your program does not update any register and therefore you still see 0 in R0 and ACC! I guess you forgot to specify the '#' (immediate) to load absolute values:

    	org 0x00
    	jmp	0x40
    	org 0x40
    	mov r0,#0x45
    	mov a,#0xfb
    	add a,r0
    lst:
    	jmp lst
    

Reply
  • While running the program, I found that the register window is not updating while single stepping.

    This is because your program does not update any register and therefore you still see 0 in R0 and ACC! I guess you forgot to specify the '#' (immediate) to load absolute values:

    	org 0x00
    	jmp	0x40
    	org 0x40
    	mov r0,#0x45
    	mov a,#0xfb
    	add a,r0
    lst:
    	jmp lst
    

Children