CHAPTER 8: DEBUGGER
S5U1C63000A MANUAL EPSON 217
(S1C63 FAMILY ASSEMBLER PACKAGE)
(2) When [Trace] window is closed:
When the td command is input without <cycle>, the debugger displays 11 lines of the latest trace data
in the [Command] window. When the td command is input with <cycle>, the debugger displays 11
lines of the trace data from <cycle> in the [Command] window.
>td
↵
Start point ?:(ENTER from the latest)↵
trace fetch fetch register flag data trace
cycle addr code disasm A B X Y EICZ addr data SP in
00011 0118 00FD jr 0xfd F 1 0007 AAAA 0000 012C rAAAA 1
00010 0116 08FE ldb %ext,0xfe F 1 0007 AAAA 0000 ---- --
00009 0117 02EF calr 0xef F 1 0007 AAAA 1000 ---- --
00008 0007 0800 ldb %ext,0x00 F 1 0007 AAAA 0000 0128 w0118 1
00007 0008 0A04 ldb %xl,0x04 F 1 0007 AAAA 1000 ---- --
00006 0009 1911 add [%x]+,0x01 F 1 0004 AAAA 0000 ---- --
00005 ---- ---- ---------- F 1 0005 AAAA 0000 0004 rD
00004 000A 1990 adc [%x]+,0x00 F 1 0005 AAAA 0000 0004 wE
00003 ---- ---- ---------- F 1 0006 AAAA 0000 0005 r5
00002 000B 1990 adc [%x]+,0x00 F 1 0006 AAAA 0000 0005 w5
00001 ---- ---- ---------- F 1 0007 AAAA 0000 0006 rE
>td 10
↵
trace fetch fetch register flag data trace
cycle addr code disasm A B X Y EICZ addr data SP in
00020 0009 1911 add [%x]+,0x01 F 1 0004 AAAA 0000 ---- --
00019 ---- ---- ---------- F 1 0005 AAAA 0000 0004 rC
00018 000A 1990 adc [%x]+,0x00 F 1 0005 AAAA 0000 0004 wD
00017 ---- ---- ---------- F 1 0006 AAAA 0000 0005 r5
00016 000B 1990 adc [%x]+,0x00 F 1 0006 AAAA 0000 0005 w5
00015 ---- ---- ---------- F 1 0007 AAAA 0000 0006 rE
00014 000C 1980 adc [%x],0x00 F 1 0007 AAAA 0000 0006 wE
00013 ---- ---- ---------- F 1 0007 AAAA 0000 0007 r4
00012 000D 1FF8 ret F 1 0007 AAAA 0000 0007 w4
00011 0118 00FD jr 0xfd F 1 0007 AAAA 0000 012C rAAAA 1
00010 0116 08FE ldb %ext,0xfe F 1 0007 AAAA 0000 ---- --
>
(3) During log output
When the command execution result is being output to a log file as specified by the log command, the
trace data is displayed in the [Command] window and its contents are also output to the log file.
If the [Trace] window is closed, data is displayed in the same way as in (2) above.
If the [Trace] window is open, its contents are redisplayed. In this case, the same number of lines are
displayed in the [Command] window as displayed in the [Trace] window.
(4) Successive display
When you execute the td command, the trace data can be displayed successively by entering the
[Enter] key only until some other command is executed.
When you input the [Enter] key, the [Trace] window is scrolled forward one screen.
When displaying data in the [Command] window, 11 lines of data preceding the previously displayed
cycle are displayed in the [Command] window (the same number of lines as displayed in the [Trace]
window if the command is executed during log output).
The direction of display is such that each time you input the [Enter] key, data on older execution
cycles is displayed (FORWARD). This direction can be reversed (BACKWARD) by entering the [B]
key. To return the display direction to FORWARD, input the [F] key. If the [Trace] window is open, the
direction in which the window is scrolled is also changed.