Breakpoints and Program Stepping
FR Family MB2198-01 Emulating and Debugging Installation Guide, Doc. No. 002-05223 Rev. *A
13
The MCU then executes the program just until your breakpoint is reached. The source window will then look like
this:
The yellow highlighted line is the actual line where the CPU is halted.
Now we want to step an instruction further. Therefore click on
,or select
Debug
Run
Step in
, or press
“F6”. The source window will change to:
The CPU has performed the load instruction and is waiting at the call instruction to the subroutine at
H’000C01E6
.
Do one instruction step further (press “F6”). Then the highlighted line will jump to the wait function:
25:
26: while (1)
27: {
28:
wait(20000);
=>
(
X
)
000C01E2: 9B044E20 LDI:20 #04E20,R4
.
=>
( )
000C01E6: D7DB CALL \wait
29:
30:
PDR1++;
=>
(
)
000C01E8: 0A01 DMOVB @001,R13
=>
(
)
000C01EA: 8BD0 MOV R13,R0
=>
(
)
000C01EC: A410 ADD #1,R0
=>
(
)
000C01EE: 8B0D MOV R0,R13
=>
(
)
000C01F0: 1A01 DMOVB R13,@001
=>
(
)
000C01F2: E0F7 BRA 000C01E2
25:
26: while (1)
27: {
28:
wait(20000);
=>
(
X
)
000C01E2: 9B044E20 LDI:20 #04E20,R4
=>
( )
000C01E6: D7DB CALL \wait
.
29:
30:
PDR1++;
=>
(
)
000C01E8: 0A01 DMOVB @001,R13
=>
(
)
000C01EA: 8BD0 MOV R13,R0
=>
(
)
000C01EC: A410 ADD #1,R0
=>
(
)
000C01EE: 8B0D MOV R0,R13
=>
(
)
000C01F0: 1A01 DMOVB R13,@001
=>
(
)
000C01F2: E0F7 BRA 000C01E2
Summary of Contents for MB2147-01
Page 10: ......
Page 11: ...FUJITSU LIMITED DSU FR EMULATOR MB2198 01 HARDWARE MANUAL ...
Page 12: ......
Page 20: ...viii ...
Page 22: ...x ...
Page 56: ...34 CHAPTER 2 CONNECTION METHOD ...
Page 64: ...42 CHAPTER 3 OPERATION METHOD ...
Page 66: ......
Page 76: ...54 APPENDIX B User System Specifications ...
Page 78: ......
Page 92: ......