Cycle View - Fujitsu MB2147-01 Application Note

Emulator system
Table of Contents

Advertisement

The next illustration shows the relationship between execution (trace window) and the compiled source code:
23:
000C01D4: C000
000C01D6: 8B0D
000C01D8: 1A01
24:
000C01DA: CFF0
000C01DC: 9B0C0401
000C01E0: 16C0
25:
26:
27:
28:
000C01E2: 9B044E20
000C01E6: D7DB
16: void wait(unsigned int a)
000C019E: 1704
000C01A0: 1781
000C01A2: 0F01
17: {
18:
000C01A4: C000
Note, you can jump to any frame by right clicking into the trace window using Jump... .
Also a Trace Back function is provided to see the executed instructions in history.
6.1.2

Cycle View

To view the trace buffer by cycle click with the right mouse button into the trace window and choose Cycle. For
the example above you will see the following:
Frame no.
-00021 :
-00020 :
-00019 :
-00018 :
-00017 :
-00016 :
-00015 :
-00014 :
-00013 :
-00012 :
-00011 :
-00010 :
-00009 :
-00008 :
-00007 :
-00006 :
-00005 :
-00004 :
-00003 :
-00002 :
-00001 :
00000 :
In this view each executed machine cycle is displayed.
FR Family MB2198-01 Emulating and Debugging Installation Guide, Doc. No. 002-05223 Rev. *A
Source Code:
PDR1=0x00;
LDI:8
#00,R0
MOV
R0,R13
DMOVB
R13,@001
DDR1=0xFF;
LDI:8
#FF,R0
LDI:20
#00401,R12
STB
R0,@R12
while (1)
{
wait(20000);
LDI:20
#04E20,R4
CALL
\wait
ST
R4,@-R15
ST
RP,@-R15
ENTER
#004
for (i=0; i<a; i++);
LDI:8
#00,R0
address
data (-00279 .. 00000)
000C0222
BTSTH
read
08 at 00000482
000C0222
BTSTH
read
08 at 00000482
000C0222
BTSTH
read
88 at 00000482
write
76 at 00000484
write
01 at 00000486
write
F0 at 00000487
write
00000000 at 0003C000
000C026E
LDI:32
000C02A6
LDI:32
000C01D0
ST
write
000C02AE at 0003C802
write
00000487 at 0003C7FE
write
00 at 00000001
write
FF at 00000401
000C019E
ST
write
00004E20 at 0003C7FA
write
000C01E8 at 0003C7F6
write
0003C7FE at 0003C7F2
----
MAIN.C$23
:
000C01D4
:
000C01D6
:
000C01D8
-00006 :
write
MAIN.C$24
:
000C01DA
:
000C01DC
:
000C01E0
-00005 :
write
MAIN.C$28
:
000C01E2
:
000C01E6
MAIN.C$16 void wait(unsigned int a)
\wait:
-00004 :
000C019E
-00003 :
write
:
000C01A0
-00002 :
write
:
000C01A2
-00001 :
write
#8,@R14
#8,@R14
#8,@R14
#0003C000,R0
#000C01D0,R12
RP,@-R15
R4,@-R15
Trace view:
PDR1=0x00;
LDI:8
#00,R0
MOV
R0,R13
DMOVB
R13,@001
00 at 00000001
DDR1=0xFF;
LDI:8
#FF,R0
LDI:20
#00401,R12
STB
R0,@R12
FF at 00000401
wait(20000);
LDI:20
#04E20,R4
CALL
\wait
ST
R4,@-R15
00004E20 at 0003C7FA
ST
RP,@-R15
000C01E8 at 0003C7F6
ENTER
#004
0003C7FE at 0003C7F2
time stamp
9,250
9,050
9,000
8,925
9,000
6,800
4,525
1,600
1,150
1,375
Trace
275
675
50
125
75
275
825
625
50
25
275
325
800
25
125
75
350
23

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb2198-01

Table of Contents