UM012811-0904
eZ8 CPU Instruction Set Description
eZ8 CPU
User Manual
174
SRP
Set Register Pointer
SRP src
Operation
RP
←
src
Description
The immediate value loads into the Register Pointer (RP). RP[7:4] sets the current Work-
ing Register Group. RP[3:0] sets the current Register Page.
Flags
Attributes
Example
•
The statement
SRP F0H
Object Code: 01 F0
sets the Register Pointer to access Working Register Group
FH
and Page
0H
in the
Register File. All references to Working Registers now affect this group of 16
registers. Registers
0F0H
to
0FFH
can be accessed as Working Registers R0 to R15.
C
Unaffected.
Z
Unaffected.
S
Unaffected.
V
Unaffected.
D
Unaffected.
H
Unaffected.
Mnemonic
Destination, Source
Opcode (Hex)
Operand 1
Operand 2
Operand 3
SRP
—
01
IM
—
—