Trace; Trace View; Instruction View - Fujitsu MB2147-01 Application Note

Emulator system
Table of Contents

Advertisement

6. Trace

How to Use the Trace Buffer
6.1

Trace View

Use the example program from above and set a break point (e.g. at address H'000C01A4) and enter execution
mode. After the CPU has stopped, run the program again (to fill the trace buffer) and then choose ViewTrace.
A new window with the content of the trace buffer will open.
6.1.1

Instruction View

Frame no.
MAIN.C$23
-00006 :
MAIN.C$24
-00005 :
MAIN.C$28
MAIN.C$16 void wait(unsigned int a)
\wait:
-00004 :
-00003 :
-00002 :
-00001 :
This is the instruction view, which shows in the first column the frame number (bus cycle). Note, that the
MB2198-01 Emulator can hold up to 65535 frames (in external mode; 128 frames in internal mode). The second
column shows the internal bus address. The third column shows either the disassembled machine code
(mnemonic) or a data transfer (inclusive data value).
Note that the last executed frame has the number -1 and all previous frames negative numbers.
The time stamp shows the execution time of the instruction including all internal cycles in nano seconds (billionth
seconds).
Please also note, that in this view the execution frame of the instructions is shown, not their fetch frame.
FR Family MB2198-01 Emulating and Debugging Installation Guide, Doc. No. 002-05223 Rev. *A
address
mnemonic (-00315 .. 00000)
PDR1=0x00;
:
000C01D4
LDI:8
:
000C01D6
MOV
:
000C01D8
DMOVB
write
00 at 00000001
DDR1=0xFF;
:
000C01DA
LDI:8
:
000C01DC
LDI:20
:
000C01E0
STB
write
FF at 00000401
wait(20000);
:
000C01E2
LDI:20
:
000C01E6
CALL
000C019E
ST
write
00004E20 at 0003C7FA
:
000C01A0
ST
write
000C01E8 at 0003C7F6
:
000C01A2
ENTER
write
0003C7FE at 0003C7F2
#00,R0
R0,R13
R13,@001
#FF,R0
#00401,R12
R0,@R12
#04E20,R4
\wait
R4,@-R15
RP,@-R15
#004
time stamp
275
675
50
125
75
275
22

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb2198-01

Table of Contents