Example Of Manipulating Memory; Realtime Memory - Fujitsu MB2147-01 Application Note

Emulator system
Table of Contents

Advertisement

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:
=>(
)000C01A0: 1781
=>(
)000C01A2: 0F01
=>(X)000C01A4: C000
=>(
)000C01A6: 9B3CC000
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:
FR Family MB2198-01 Emulating and Debugging Installation Guide, Doc. No. 002-05223 Rev. *A
17: {
18: for (i=0; i<a; i++);
ST
RP,@-R15
ENTER
#004
LDI:8
#00,R0
LDI:20
#3C000,R12
Monitoring and Manipulating
19

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb2198-01

Table of Contents