
MB89960 Series
21
2.
Registers
The MB89960 series provides two types of registers: dedicated registers in the CPU and general-purpose
registers. The dedicated registers are as follows.
The upper 8 bits of the PS contain the register bank pointer (RP) and the lower 8 bits contain the condition code
register (CCR) . (See the diagram below.)
Program counter (PC)
Accumulator (A)
: A 16-bit register for indicating the instruction storage positions.
: A 16-bit register that provides temporary storage for arithmetic operations and
similar. Instructions that operate on 8-bit data use the lower byte.
Temporary accumulator (T) : A 16-bit register used for arithmetic operations with the accumulator. Instructions
that operate on 8-bit data use the lower byte.
Index register (IX)
: A 16-bit register used for index modification.
Extra pointer (EP)
: A 16-bit pointer used for indicating a memory address .
Stack pointer (SP)
: A 16-bit register used for indicating a stack area.
Program status (PS)
: A 16-bit register used to store a register pointer and condition code.
PS
16 bits
Initial value
FFFD
H
PC
A
T
IX
EP
SP
: Program counter
: Accumulator
: Temporary accumulator
: Index register
: Extra pointer
: Stack pointer
RP
CCR
: Program status
Undefined
Undefined
Undefined
Undefined
Undefined
I flag = 0, IL1, IL0 = 11
Other bits are undefined
PS
X : Undefined
Half carry flag
Interrupt enable flag
Interrupt level bits
Negative flag
Zero flag
Overflow flag
Carry flag
RP
CCR
X011XXXX
B
CCR Initial value
bit15 bit14 bit13 bit12 bit11 bit10
R4
R3
R2
bit9
bit8
bit7
H
bit6
I
bit5
IL1
bit4
IL0
bit3
N
bit2
Z
bit1
V
bit0
C
R1
R0