MOTOROLA
Chapter 5. PowerPC Core Register Set
5-3
Part II. PowerPC Microprocessor Module
The CR Þelds can be set in one of the following ways:
¥
SpeciÞed Þelds of the CR can be set from a GPR by using the mtcrf instruction.
¥
An mcrf instruction can move the contents of XER[0Ð3] to a CR Þeld.
¥
An mcrxr instruction can copy a speciÞed XER Þeld to a speciÞed CR Þeld.
¥
Condition register logical instructions perform logical operations on speciÞed CR
bits.
¥
CR0 can be the implicit result of an integer instruction.
¥
A speciÞed CR Þeld can indicate the result of an integer compare instruction.
Note that branch instructions are provided to test individual CR bits.
5.1.1.1.2 Condition Register CR0 Field DeÞnition
For all integer instructions, when the CR is set to reßect 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] reßects the result as a signed quantity.
The CR bits are interpreted as shown in Table 5-3. If any portion of the result is undeÞned,
the value placed into CR0[0Ð3] is undeÞned.
Note that CR0 may not reßect the true (that is, inÞnitely precise) result if overßow occurs.
5.1.1.1.3 XER
Figure 5-2 shows XER bit assignments. Settings are based on the Þnal result produced by
executing an instruction.
Table 5-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 overßow (SO). This is a copy of the Þnal state of XER[SO] at the completion of the instruction.
Bit
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Field
SO
OV
CA
Ñ
Reset
0000_0000_0000_0000
R/W
R/W
Bit
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Field
Ñ
BCNT
Reset
0000_0000_0000_0000
R/W
R/W
Figure 5-2. XER Register
Содержание MPC860 PowerQUICC
Страница 3: ...MPC860UM AD 07 98 REV 1 MPC860 PowerQUICC ª UserÕs Manual ...
Страница 36: ...xxxvi MPC860 PowerQUICC UserÕs Manual MOTOROLA CONTENTS Paragraph Number Title Page Number ...
Страница 78: ...I iv MPC860 PowerQUICC UserÕs Manual MOTOROLA Part I Overview ...
Страница 88: ...1 10 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part I Overview ...
Страница 114: ...3 16 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part I Overview ...
Страница 226: ...8 32 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part II PowerPC Microprocessor Module ...
Страница 262: ...9 36 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part II PowerPC Microprocessor Module ...
Страница 274: ...III iv MPC860 PowerQUICC UserÕs Manual MOTOROLA Part III Configuration ...
Страница 320: ...12 12 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part III Configuration ...
Страница 325: ...MOTOROLA Part IV Hardware Interface IV v Part IV Hardware Interface ...
Страница 326: ...IV vi MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 352: ...13 26 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 394: ...14 42 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 426: ...15 32 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 530: ...17 26 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 632: ...21 44 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 660: ...22 28 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 708: ...24 24 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 748: ...27 20 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 846: ...31 20 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 914: ...35 12 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 948: ...36 34 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 998: ...37 48 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part VI Debug and Test ...
Страница 1016: ...A 10 MPC860 PowerQUICC UserÕs Manual MOTOROLA Appendixes ...
Страница 1024: ...B 8 MPC860 PowerQUICC UserÕs Manual MOTOROLA Appendixes ...
Страница 1030: ...C 6 MPC860 PowerQUICC UserÕs Manual MOTOROLA Appendixes ...
Страница 1086: ...Glossary 12 MPC860 PowerQUICC UserÕs Manual MOTOROLA ...
Страница 1106: ......