Central Processing Unit
MPC561/MPC563 Reference Manual, Rev. 1.2
Freescale Semiconductor
3-17
•
A specified CR field can be the explicit result of an integer compare instruction.
Instructions are provided to test individual CR bits.
3.7.4.1
Condition Register CR0 Field Definition
In most integer instructions, when the CR is set to reflect the result of the operation (that is, when Rc = 1),
and for addic., andi., and andis., the first three bits of CR0 are set by an algebraic comparison of the result
to zero; the fourth bit of CR0 is copied from XER[SO]. For integer instructions, CR0[0:3] are set to reflect
the result as a signed quantity. The EQ bit reflects the result as an unsigned quantity or bit string.
The CR0 bits are interpreted as shown in
. If any portion of the result (the 32-bit value placed
into the destination register) is undefined, the value placed in the first three bits of CR0 is undefined.
3.7.4.2
Condition Register CR1 Field Definition
In all floating-point instructions when the CR is set to reflect the result of the operation (that is, when Rc
= 1), the CR1 field (bits 4 to 7 of the CR) is copied from FPSCR[0:3] to indicate the floating-point
exception status. For more information about the FPSCR, see
Section 3.7.3, “Floating-Point Status and
.” The bit settings for the CR1 field are shown in
3.7.4.3
Condition Register CR
n
Field — Compare Instruction
When a specified CR field is set by a compare instruction, the bits of the specified field are interpreted as
shown in
. A condition register field can also be accessed by the mfcr, mcrf, and mtcrf
instructions.
Table 3-7. Bit Settings for CR0 Field of CR
CR0 Bit
Description
0
Negative (LT). This bit is set when the result is negative.
1
Positive (GT). This bit is set when the result is positive (and not zero).
2
Zero (EQ). This bit is set when the result is zero.
3
Summary overflow (SO). This is a copy of the final state of XER[SO] at the completion of the instruction.
Table 3-8. Bit Settings for CR1 Field of CR
CR1 Bit
Description
0
Floating-point exception (FX). This is a copy of the final state of FPSCR[FX] at the completion of the
instruction.
1
Floating-point enabled exception (FEX).This is a copy of the final state of FPSCR[FEX] at the completion of
the instruction.
2
Floating-point invalid exception (VX).This is a copy of the final state of FPSCR[VX] at the completion of the
instruction.
3
Floating-point overflow exception (OX).This is a copy of the final state of FPSCR[OX] at the completion of
the instruction.
Summary of Contents for MPC561
Page 84: ...MPC561 MPC563 Reference Manual Rev 1 2 lxxxiv Freescale Semiconductor...
Page 144: ...Signal Descriptions MPC561 MPC563 Reference Manual Rev 1 2 2 46 Freescale Semiconductor...
Page 206: ...Central Processing Unit MPC561 MPC563 Reference Manual Rev 1 2 3 62 Freescale Semiconductor...
Page 302: ...Reset MPC561 MPC563 Reference Manual Rev 1 2 7 14 Freescale Semiconductor...
Page 854: ...Time Processor Unit 3 MPC561 MPC563 Reference Manual Rev 1 2 19 24 Freescale Semiconductor...
Page 968: ...Development Support MPC561 MPC563 Reference Manual Rev 1 2 23 54 Freescale Semiconductor...
Page 1144: ...Internal Memory Map MPC561 MPC563 Reference Manual Rev 1 2 B 34 Freescale Semiconductor...
Page 1212: ...TPU3 ROM Functions MPC561 MPC563 Reference Manual Rev 1 2 D 60 Freescale Semiconductor...
Page 1216: ...Memory Access Timing MPC561 MPC563 Reference Manual Rev 1 2 E 4 Freescale Semiconductor...