S5U1C62000A MANUAL EPSON 167
(S1C60/62 FAMILY ASSEMBLER PACKAGE)
CHAPTER 9: DEBUGGER

9.9.5 Register Operation

rd (register display)
Function
This command displays the contents of the registers, current and next operation code and correspond-
ing mnemonic.
Format
>rd(direct input mode)
Display

(1) Contents of display

The following lists the contents displayed by this command.
PC: Program counter
A: A register
B: B register
X: X register
Y: Y register
SP: Stack pointer
IDZC: Flags
Current Code: Currently fetched program code at address indicated by PC
and corresponding mnemonic
Next Code: Next code and corresponding mnemonic

(2) When [Register] window is opened

When the [Register] window is opened, all the above contents are displayed in the [Register] window
according to the program execution. When you use the rd command, the displayed contents of the
[Register] window is updated.

(3) When [Register] window is closed

Data is displayed in the [Command] window in the following manner:
>rd
PC:0206 A:0 B:f SP:7d X:003 Y:0ff IDZC:0010
Current Code:e00 LD A, 0x0 Next Code:e80 LD XP, A
>

(4) During log output

If a command execution result is being output to a log file by the log command, the register values are
displayed in the [Command] window even if the [Register] window is opened and are also output to
the log file.
GUI utility
[View | Register] menu item
When this menu item is selected, the [Register] window opens or becomes active and displays the
current register contents.