Epson S5U1C62000A Manual page 218

Epson cmos 4-bit single chip microcomputer manual
Table of Contents

Advertisement

CHAPTER 9: DEBUGGER
(2) When [Trace] window is closed:
When the td command is input without <num>, the debugger displays 11 lines of the latest trace data
in the [Command] window. When the td command is input with <num>, the debugger displays 11
lines of the trace data from <num> in the [Command] window.
>td
Start point ?:(ENTER from the latest)
trace
fetch
Loc
CODE
0000
e08 LD A, 0x8
0001
fe0 LD SPH, A
0002
e00 LD A, 0x0
0003
ff0 LD SPL, A
0004
e42 PSET 0x2
0005
400 CALL 0x0
0006
e00 LD A, 0x0
0007
e80 LD XP, A
0008
b00 LD X, 0x0
0009
900 LBPX MX, 0x0
0010
900 LBPX MX, 0x0
>td 10
trace
fetch
Loc
CODE
0010
900 LBPX MX, 0x0
0011
fdf RET
0012
e42 PSET 0x2
0013
406 CALL 0x6
0014
e00 LD A, 0x0
0015
e80 LD XP, A
0016
b00 LD X, 0x0
0017
e00 LD A, 0x0
0018
f41 SCF
0019
f28 ACPX MX, A
0020
f28 ACPX MX, A
>
Notes
• Trace memory has a capacity of 8,192 cycles. On the other hand, the S1C6200 has 5, 7 and 12 clock
instructions. The 5 clock instructions require 3 bus cycles, 7 clock instructions require 4 bus cycles, and
12 clock instructions require 6 bus cycles. Thus, the final value of the trace pointer is changed accord-
ing to the executed instruction. The maximum final value when only 5 clock instructions are executed
is about 2,730, while the execution for only 12 clock instructions is about 1,300. So the maximum
possible value of trace pointer is 2,730.
An error results if the <num> you specified exceeds the maximum possible value (2,730).
• The trace memory receives new data until a break occurs. When the trace memory is filled, old data is
overwritten by new data.
• If there is no trace information can be read out, the warning message will be displayed.
No trace data.
• An error results if the <num> value you input is bigger than the last location in the trace memory.
Error : Data address out of range.
GUI utility
[View | Trace] menu item
When this menu item is selected, the [Trace] window opens and displays the latest trace data.
206
register
PC
A B
X
Y
0100
0 0
001 100
0101
8 0
001 100
0102
8 0
001 100
0103
0 0
001 100
0104
0 0
001 100
0105
0 0
001 100
0200
0 0
001 100
0201
0 0
001 100
0202
0 0
000 100
0203
0 0
001 100
0204
0 0
003 100
register
PC
A B
X
Y
0204
0 0
003 100
0205
0 0
004 100
0106
0 0
004 100
0107
0 0
004 100
0206
0 0
004 100
0207
0 0
004 100
0208
0 0
000 100
0209
0 0
000 100
020a
0 0
000 100
020b
0 0
000 100
020c
0 0
001 100
EPSON
trace
data
IDZC
MemOP
0100
0100
0100
0100
0100
0100
W07F=1
W07E=0
0100
0100
0100
0100
W000=0
W001=0
0100
W002=0
W003=0
trace
data
IDZC
MemOP
0100
W002=0
W003=0
0100
R07D=6
R07E=0
0100
0100
W07F=1
W07E=0
0100
0100
0100
0100
0101
0100
R000=0
W000=1
0110
R001=0
W001=0
(S1C60/62 FAMILY ASSEMBLER PACKAGE)
OtherOP
W07D=6
OtherOP
R07F=1
W07D=8
S5U1C62000A MANUAL

Advertisement

Table of Contents
loading

Table of Contents