4. Breakpoints and Program Stepping
How to Set Break Points and How to Use Single Steps
4.1
Setting Break Points
Each assembler line in the mixed mode display of the source code has a blue arrow and a green circle symbol:
In these line a breakpoint can be set by clicking into the circle. The symbol then turns to
4.2
Using a Break Point
Assume you want to examine the program in the example above. A good breakpoint would be just before calling
the wait-function. Therefore set the breakpoint to Address H'000C01E2.
=>(X)000C01E2: 9B044E20
=>(
)000C01E6: D7DB
=>(
)000C01E8: 0A01
=>(
)000C01EA: 8BD0
=>(
)000C01EC: A410
=>(
)000C01EE: 8B0D
=>(
)000C01F0: 1A01
=>(
)000C01F2: E0F7
31:
32: }
000C01F4: 9F90
000C01F6: 0781
Now start execution (press "F5").
FR Family MB2198-01 Emulating and Debugging Installation Guide, Doc. No. 002-05223 Rev. *A
25:
26: while (1)
27: {
28:
wait(20000);
29:
30:
PDR1++;
}
LEAVE
LD
LDI:20
#04E20,R4
CALL
\wait
DMOVB
@001,R13
MOV
R13,R0
ADD
#1,R0
MOV
R0,R13
DMOVB
R13,@001
BRA
000C01E2
@R15+,RP
12