Chapter 2. Using the Monitor/Debug Firmware
2-33
Commands
STEP
Step Over
Usage:
STEP
The STEP command can be used to “step over” a subroutine call, rather than tracing every
instruction in the subroutine. The ST command sets a temporary breakpoint one instruction
beyond the current program counter and then executes the target code.
The STEP command can be used to “step over” BSR and JSR instructions.
The STEP command will work for other instructions as well, but note that if the STEP
command is used with an instruction that will not return, i.e. BRA, then the temporary
breakpoint may never be encountered and dBUG may never regain control.
Examples:
To pass over a subroutine call, the command is:
step
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
n
c
.
..