MPC8xx Core Register Set
MPC885 PowerQUICC Family Reference Manual, Rev. 2
Freescale Semiconductor
4-3
•
Condition register logical instructions perform logical operations on specified CR bits.
•
CR0 can be the implicit result of an integer instruction.
•
A specified CR field can indicate the result of an integer compare instruction.
Note that branch instructions are provided to test individual CR bits.
4.1.1.1.2
Condition Register CR0 Field Definition
For all 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., CR0[0–2] are set by an algebraic comparison of the result to zero;
CR0[3] is copied from XER[SO]. For integer instructions, CR[0–3] reflects the result as a signed quantity.
The CR bits are interpreted as shown in
Table 4-3
. If any portion of the result is undefined, the value placed
into CR0[0–3] is undefined.
Note that CR0 may not reflect the true (that is, infinitely precise) result if overflow occurs.
4.1.1.1.3
XER
Figure 4-2
shows XER bit assignments. Settings are based on the final result produced by executing an
instruction.
Table 4-3. Bit Settings for CR0 Field of CR
CR0 Bit
Description
0
Negative (LT). Set when the result is negative.
1
Positive (GT). Set when the result is positive (and not zero).
2
Zero (EQ). 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.
0
1
2
3
15
Field
SO
OV
CA
—
Reset
0000_0000_0000_0000
R/W
R/W
16
24
25
31
Field
—
BCNT
Reset
0000_0000_0000_0000
R/W
R/W
Figure 4-2. XER Register
Summary of Contents for PowerQUICC MPC870
Page 98: ...MPC885 PowerQUICC Family Reference Manual Rev 2 I 4 Freescale Semiconductor ...
Page 118: ...MPC885 Overview MPC885 PowerQUICC Family Reference Manual Rev 2 1 20 Freescale Semiconductor ...
Page 158: ...The MPC8xx Core MPC885 PowerQUICC Family Reference Manual Rev 2 3 18 Freescale Semiconductor ...
Page 288: ...MPC885 PowerQUICC Family Reference Manual Rev 2 III 4 Freescale Semiconductor ...
Page 554: ...MPC885 PowerQUICC Family Reference Manual Rev 2 V 6 Freescale Semiconductor ...
Page 1090: ...UTOPIA Interface MPC885 PowerQUICC Family Reference Manual Rev 2 43 8 Freescale Semiconductor ...
Page 1312: ...Byte Ordering MPC885 PowerQUICC Family Reference Manual Rev 2 A 8 Freescale Semiconductor ...
Page 1336: ...MPC885 PowerQUICC Family Reference Manual Rev 2 D 16 Freescale Semiconductor ...
Page 1358: ...MPC885 PowerQUICC Family Reference Manual Rev 2 D 38 Freescale Semiconductor ...
Page 1370: ...MPC880 MPC885 PowerQUICC Family Reference Manual Rev 2 E 4 Freescale Semiconductor ...
Page 1386: ...Revision History MPC885 PowerQUICC Family Reference Manual Rev 2 I 2 Freescale Semiconductor ...