168
EPSON
S5U1C62000A MANUAL
(S1C60/62 FAMILY ASSEMBLER PACKAGE)
CHAPTER 9: DEBUGGER
rs
(register set)
Function
This command modifies the register values.
Format
(1) >rs <register> <value> [<register> <value> [...<register> <value>]]
↵
(direct input mode)
(2) >rs
↵
(guidance mode)
PC =
Old value : <value>
↵
A =
Old value : <value>
↵
B =
Old value : <value>
↵
X =
Old value : <value>
↵
Y =
Old value : <value>
↵
FI =
Old value : <value>
↵
FD =
Old value : <value>
↵
FZ =
Old value : <value>
↵
FC =
Old value : <value>
↵
SP =
Old value : <value>
↵
>
<register>: Register name (A, B, X, Y, SP, PC, F)
<value>:
Value to be set to the register; binary for F, hexadecimal for others
Examples
Format (1)
>rs PC 0110 F 0000
↵
... Sets PC to 0x0110 and resets all the flags.
Format (2)
>rs
↵
PC = 206 : 100
↵
A = 0 : 0
↵
B = f : 0
↵
X = 3 : 000
↵
Y = ff : 100
↵
FI = 0 :
↵
FD = 0 : 1
↵
FZ = 1 : 0
↵
FC = 0 :
↵
SP = 7d : 7f
↵
>
After you execute the command, the [Register] window is updated to show the contents you have
input. If you input "q
↵
" to stop entering in the middle, the contents input up to that time are updated.
Notes
• An error results if you input a value exceeding the register's bit width.
Error : invalid value.
• An error results if you input a register name other than PC, A, B, X, Y, F or SP in direct input mode.
Error : register name (PC/A/B/X/Y/F/SP).
• In guidance mode, the following keyboard inputs have special meaning:
"q
↵
"
… Command is terminated. (finish inputting and start execution)
"^
↵
"
… Return to previous register.
"
↵
"
… Input is skipped. (keep current value)
GUI utility
[Register] window
The [Register] window allows direct modification of data. Click the [Register] window, select the
displayed data to be modified and enter a value then press [Enter].