FR Family MB2198-01 Emulating and Debugging Installation Guide, Doc. No. 002-05223 Rev. *A
22
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
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.
Frame no. address mnemonic (-00315 .. 00000) time stamp
MAIN.C$23 PDR1=0x00;
: 000C01D4 LDI:8 #00,R0
: 000C01D6 MOV R0,R13
: 000C01D8 DMOVB R13,@001
-00006 : write 00 at 00000001 275
MAIN.C$24 DDR1=0xFF;
: 000C01DA LDI:8 #FF,R0
: 000C01DC LDI:20 #00401,R12
: 000C01E0 STB R0,@R12
-00005 : write FF at 00000401 675
MAIN.C$28 wait(20000);
: 000C01E2 LDI:20 #04E20,R4
: 000C01E6 CALL \wait
MAIN.C$16 void wait(unsigned int a)
\wait:
-00004 : 000C019E ST R4,@-R15 50
-00003 : write 00004E20 at 0003C7FA 125
: 000C01A0 ST RP,@-R15
-00002 : write 000C01E8 at 0003C7F6 75
: 000C01A2 ENTER #004
-00001 : write 0003C7FE at 0003C7F2 275
Содержание MB2147-01
Страница 9: ...FUJITSU SEMICONDUCTOR CONTROLLER MANUAL DSU FR EMULATOR MB2198 01 HARDWARE MANUAL CM71 00413 2E ...
Страница 10: ......
Страница 11: ...FUJITSU LIMITED DSU FR EMULATOR MB2198 01 HARDWARE MANUAL ...
Страница 12: ......
Страница 20: ...viii ...
Страница 22: ...x ...
Страница 56: ...34 CHAPTER 2 CONNECTION METHOD ...
Страница 64: ...42 CHAPTER 3 OPERATION METHOD ...
Страница 66: ......
Страница 69: ...47 APPENDIX A DSU FR Cable Specifications Figure A 2 Connector Terminal Arrangement for DSU 3 Pin 1 Pin 30 ...
Страница 76: ...54 APPENDIX B User System Specifications ...
Страница 78: ......
Страница 92: ......