HP H8/3003 User Manual page 51

Emulator terminal interface
Table of Contents

Advertisement

Line
addr,H
H8/3042 mnemonic,H
-----
------
-----------------------------------
0
00101e
aa41
1
001014
MOV.B @0ff800,R2L
2
001016
000f
3
001018
f800
4
00101a
CMP.B #00,R2L
5
0ff800
00xx
6
00101c
BEQ 001014
7
00101e
aa41
8
001014
MOV.B @0ff800,R2L
9
001016
000f
10
001018
f800
11
00101a
CMP.B #00,R2L
12
0ff800
00xx
13
00101c
BEQ 001014
14
00101e
aa41
15
001014
MOV.B @0ff800,R2L
16
001016
000f
17
001018
f800
18
00101a
CMP.B #00,R2L
19
0ff800
00xx
20
00101c
BEQ 001014
U> tl 0..20
fetch mem
fetch mem
fetch mem
read
mem byte
fetch mem
fetch mem
fetch mem
read
mem byte
fetch mem
fetch mem
fetch mem
read
mem byte
This is not what we were expecting to see. (We expected to see the
program executed Exe_Cmd routine which starts from 101e hex.) As
you can see at the fist line of the trace list, address 101e hex appears on
the address bus during the program executing Scan loop. This triggered
the emulation analyzer before EXE_Cmd routine was executed. To
avoid mis-trigger by this cause, set the trigger condition to the second
instruction of the routine you want to trace. Type:
U> tg addr=1020
To change the trigger position so that 10 states appear before the trigger
in the trace list, type:
U> tp -b 10
Start the trace again and modify memory:
U> t
U> m 0ff800=41
Now display the trace list:
U> tl -10..10
As you can see, the analyzer captured the execution of Exe_Cmd
routine which starts from line -2 of the trace list.
count,R
seq
---------
---
---
+
0.120 uS
.
0.120 uS
.
0.120 uS
.
0.120 uS
.
0.120 uS
.
0.120 uS
.
0.160 uS
.
0.120 uS
.
0.120 uS
.
0.120 uS
.
0.120 uS
.
0.120 uS
.
0.120 uS
.
0.120 uS
.
0.160 uS
.
0.120 uS
.
0.120 uS
.
0.120 uS
.
0.120 uS
.
0.120 uS
.
Getting Started 2-31

Advertisement

Table of Contents
loading

Table of Contents