Monitoring and Manipulating
FR Family MB2198-01 Emulating and Debugging Installation Guide, Doc. No. 002-05223 Rev. *A
19
5.4.1
Example of Manipulating Memory
Use the example program from above compile it and enter debugging mode.
Set a break point at address
H’000C01A4
:
Enter execution mode and the CPU stops at
H’000C01A4
. Now select
View
Watch
and add variable
a
. Then
select
View
Memory
and enter start address
H’3C7FA
.
You will find the C variable
a
at the address
H’0003C7FA
. Assume you want to change its value. Therefore
double click on
H’3C7FA
. The following dialog window will pop up:
Now type
40
in the
Data
text field and watch the variable window. You will see that the value of
a
will change
immediately to
H’40200000
.
5.4.2
Realtime Memory
There is another way to view memory. Choose
View
Realtime memory
. A Setup window will occur (if not, click
the right button of the new opened window and select
Setup Area…
.). In the
Setup debug environment
window
select
Realtime memory
area
. Enter “
0
” for the
Start address
for
Area number: 1
. Click on
Set
and then
OK
. The
new Realtime memory window looks much like the Memory window, but is limited to 255 Byte (per area), but
highlights any memory changes in red.
To see the memory in “real time” during execution, choose
Setup
Debug environment
Debug environment
.
Then select the
Monitoring
folder and enter “
D’100
at
Sampling Time:
(using USB connection to the PC) and
click on check box
Realtime memory window
:
=>
(
)
000C01A0: 1781 ST RP,@-R15
=>
(
)
000C01A2: 0F01 ENTER #004
17: {
18: for (i=0; i<a; i++);
=>
(
X
)
000C01A4: C000 LDI:8 #00,R0
=>
(
)
000C01A6: 9B3CC000 LDI:20 #3C000,R12
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: ......