MB95630H Series
MN702-00009-1v0-E
FUJITSU SEMICONDUCTOR LIMITED
11
CHAPTER 2 CPU
2.2 General-purpose Register
2.2
General-purpose Register
The general-purpose registers are a memory block in which each bank consists
of eight 8-bit registers. Up to 32 register banks can be used in total. The
register bank pointer (RP) is used to specify a register bank.
Register banks are useful for interrupt handling, vector call processing, and
sub-routine calls.
■
Configuration of General-purpose Register
•
The general-purpose register is an 8-bit register and is located in a register bank in the
general-purpose register area (in RAM).
•
Up to 32 banks can be used, each of which consists of eight registers (R0 to R7).
•
The register bank pointer (RP) specifies the register bank currently being used and the lower
three bits of the op-code specify the general-purpose register 0 (R0) to the general-purpose
register 7 (R7).
Figure 2.2-1 shows the configuration of the register banks.
Figure 2.2-1 Configuration of Register Banks
For information on the general-purpose register area available on each product, see "
■
AREAS
FOR SPECIFIC APPLICATIONS" in the device data sheet.
R0
R1
R2
R
3
R4
R5
R6
R7
R0
R1
R2
R
3
R4
R5
R6
R7
R0
R1
R2
R
3
R4
R5
R6
R7
Thi
s
a
ddre
ss
= 0x0100
+
8
× (RP)
3
2
ba
nk
s
Memory
a
re
a
0x1F
8
Addre
ss
0x100
0x107
0x1FF
8
b
it
s
The n
u
m
b
er of
ba
nk
s
a
v
a
il
ab
le i
s
re
s
tricted
b
y
the
a
v
a
il
ab
le RAM
s
ize.
B
a
nk
3
1
B
a
nk 0