
MPC555
/
MPC556
CENTRAL PROCESSING UNIT
MOTOROLA
USER’S MANUAL
Rev. 15 October 2000
3-18
The bit definitions for XER, shown in
, are based on the operation of an in-
struction considered as a whole, not on intermediate results. For example, the result
of the Subtract from Carrying (
subfc
x
) instruction is specified as the sum of three val-
ues. This instruction sets bits in the XER based on the entire operation, not on an in-
termediate sum.
In most cases, reserved fields in registers are ignored when written to and return zero
when read. However, XER[16:23] are set to the value written to them and return that
value when read.
3.7.6 Link Register (LR)
The 32-bit link register supplies the branch target address for the Branch Conditional
to Link Register (
bclr
x
) instruction, and can be used to hold the logical address of the
instruction that follows a branch and link instruction.
Note that although the two least-significant bits can accept any values written to them,
they are ignored when the LR is used as an address.
Both conditional and unconditional branch instructions include the option of placing the
effective address of the instruction following the branch instruction in the LR. This is
done regardless of whether the branch is taken.
Table 3-10 Integer Exception Register Bit Definitions
Bit(s)
Name
Description
0
SO
Summary Overflow (SO) — The summary overflow bit is set whenever an instruction sets the
overflow bit (OV) to indicate overflow and remains set until software clears it. It is not altered
by compare instructions or other instructions that cannot overflow.
1
OV
Overflow (OV) — The overflow bit is set to indicate that an overflow has occurred during exe-
cution of an instruction. Integer and subtract instructions having OE=1 set OV if the carry out
of bit 0 is not equal to the carry out of bit 1, and clear it otherwise. The OV bit is not altered by
compare instructions or other instructions that cannot overflow.
2
CA
Carry (CA) — In general, the carry bit is set to indicate that a carry out of bit 0 occurred during
execution of an instruction. Add carrying, subtract from carrying, add extended, and subtract
from extended instructions set CA to one if there is a carry out of bit 0, and clear it otherwise.
The CA bit is not altered by compare instructions or other instructions that cannot carry, except
that shift right algebraic instructions set the CA bit to indicate whether any ‘1’ bits have been
shifted out of a negative quantity.
3:24
—
Reserved
25:31
BYTES
This field specifies the number of bytes to be transferred by a Load String Word Indexed (
lswx
)
or Store String Word Indexed (
stswx
) instruction.
LR
— Link Register
SPR 8
MSB
0
1
2
3
4
5
6
7
8
9
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
LSB
31
Branch Address
RESET: UNCHANGED
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
.
..