debugger skips nop:
frdchang
Posts: 14
hello
when i run the debugger for this blinking led code, it steps the first nop, then skips to the setb instruction.
is this normal?· (it seems like it only executes 1 nop and ignores the other 2)
thanks,
fred
;================================= ;Programming the SX microcontroller ;TUT001.src ;================================= ;LIST Q = 37 DEVICE SX28L, TURBO, STACKX, OSCHS2 IRC_CAL IRC_FAST FREQ 50_000_000 RESET 0 mov !rb, #%11111110 Loop clrb rb.0 nop nop nop setb rb.0 jmp Loop
when i run the debugger for this blinking led code, it steps the first nop, then skips to the setb instruction.
is this normal?· (it seems like it only executes 1 nop and ignores the other 2)
thanks,
fred
Comments
The SX chip does not allow you to set breakpoints on NOPs. This means, even though they are being executed, all debuggers will skip right through them during debugging. Here's a page that gives some more info and a workaround:
www.sxlist.com/techref/ubicom/debuggers.htm
Look towards the bottom of the page where it says, "Notes."
Thanks,
PeterM