Z8 Microcontrollers
ZiLOG Instruction Descriptions and Formats
UM001601-0803 12-67
SRP
SET REGISTER POINTER
Note:
When an Expanded Register Bank , other than Bank 0 is selected, access to the Z8 Standard Register File is possible
except for the Port Register and general purpose registers 04H to 0FH.
fpr Register Addresses 0H to FH.
Example:
The statement:
SRP F0H Op Code: 31 F0
sets the Register Pointer to access expanded Register Bank 0 and Working Register Group F in the Z8 Standard
Register File. All references to Working Registers now affect this group of 16 registers. Registers F0H to FFH can
be accessed as Working Registers R0 to R15
Example:
The statement:
SRP 0FH
Op Code: 31 0F
sets the Register Pointer to access Expanded Register Bank F, Reg 00H to Reg 0FH, as the current Working
Registers. All references to Working Registers now affect this group of 16 registers. These registers are now
accessed as Working Registers R0 to R15. Port Registers are now not accessable.
Register Pointer Expanded
(FDH) Register Bank
Contents (Hex) (Hex)
xxxx 1111 F
xxxx 1110 E
xxxx 1101 D
xxxx 1100 C
xxxx 1011 B
xxxx 1010 A
xxxx 1001 9
xxxx 1000 8
xxxx 0111 7
xxxx 0110 6
xxxx 0101 5
xxxx 0100 4
xxxx 0011 3
xxxx 0010 2
xxxx 0001 1
xxxx 0000 0
Flags: C: Unaffected
Z: Unaffected
S: Unaffected
V: Unaffected
D: Unaffected
H: Unaffected