Shop OBEX P1 Docs P2 Docs Learn Events
debugger skips nop: — Parallax Forums

debugger skips nop:

frdchangfrdchang Posts: 14
edited 2004-09-01 06:56 in General Discussion
hello

;=================================
;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

  • PJMontyPJMonty Posts: 983
    edited 2004-09-01 06:56
    Fred,

    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
Sign In or Register to comment.