beautypg.com

Rs (register set) – Epson S5U1C62000A User Manual

Page 180

background image

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 [ [... ]]

(direct input mode)

(2) >rs

(guidance mode)

PC =

Old value

:

A =

Old value

:

B =

Old value

:

X =

Old value

:

Y =

Old value

:

FI =

Old value

:

FD =

Old value

:

FZ =

Old value

:

FC =

Old value

:

SP =

Old value

:

>

: Register name (A, B, X, Y, SP, PC, F)
:

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].