206 EPSON S5U1C62000A MANUAL
(S1C60/62 FAMILY ASSEMBLER PACKAGE)
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 register trace data
Loc CODE PC A B X Y IDZC MemOP OtherOP
0000 e08 LD A, 0x8 0100 0 0 001 100 0100
0001 fe0 LD SPH, A 0101 8 0 001 100 0100
0002 e00 LD A, 0x0 0102 8 0 001 100 0100
0003 ff0 LD SPL, A 0103 0 0 001 100 0100
0004 e42 PSET 0x2 0104 0 0 001 100 0100
0005 400 CALL 0x0 0105 0 0 001 100 0100 W07F=1 W07E=0 W07D=6
0006 e00 LD A, 0x0 0200 0 0 001 100 0100
0007 e80 LD XP, A 0201 0 0 001 100 0100
0008 b00 LD X, 0x0 0202 0 0 000 100 0100
0009 900 LBPX MX, 0x0 0203 0 0 001 100 0100 W000=0 W001=0
0010 900 LBPX MX, 0x0 0204 0 0 003 100 0100 W002=0 W003=0
>td 10↵
trace fetch register trace data
Loc CODE PC A B X Y IDZC MemOP OtherOP
0010 900 LBPX MX, 0x0 0204 0 0 003 100 0100 W002=0 W003=0
0011 fdf RET 0205 0 0 004 100 0100 R07D=6 R07E=0 R07F=1
0012 e42 PSET 0x2 0106 0 0 004 100 0100
0013 406 CALL 0x6 0107 0 0 004 100 0100 W07F=1 W07E=0 W07D=8
0014 e00 LD A, 0x0 0206 0 0 004 100 0100
0015 e80 LD XP, A 0207 0 0 004 100 0100
0016 b00 LD X, 0x0 0208 0 0 000 100 0100
0017 e00 LD A, 0x0 0209 0 0 000 100 0100
0018 f41 SCF 020a 0 0 000 100 0101
0019 f28 ACPX MX, A 020b 0 0 000 100 0100 R000=0 W000=1
0020 f28 ACPX MX, A 020c 0 0 001 100 0110 R001=0 W001=0
>
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.