MOTOROLA
Chapter 6. MPC860 Instruction Set
6-9
Part II. PowerPC Microprocessor Module
Although there is no Subtract Immediate instruction, its effect can be achieved by using an
addi instruction with the immediate operand negated. SimpliÞed mnemonics are provided
that include this negation. The subf instructions subtract the second operand (rA) from the
third operand (rB). SimpliÞed mnemonics are provided in which the third operand is
subtracted from the second operand. See Appendix F, ÒSimplified Mnemonics,Ó in The
Programming Environments Manual for examples.
6.2.4.1.2 Integer Compare Instructions
The integer compare instructions algebraically or logically compare the contents of rA with
either the UIMM operand, the SIMM operand, or the contents of rB. The comparison is
signed for the cmpi and cmp instructions, and unsigned for the cmpli and cmpl
instructions. Table 6-3 lists the integer compare instructions.
The crfD operand can be omitted if the result of the comparison is to be placed in CR0.
Otherwise the target CR Þeld must be speciÞed in the instruction crfD field.
1
Implementation Note:
Attempting to use
divw
to perform either 0x80000000
¸
-1 or <anything>
¸
0 sets the
contents of
r
D to 0x80000000 and if Rc =1, the contents CR0 are LT = 1, GT = 0, and EQ = 0. SO is set to the
correct value.
1
Implementation Note:
In these instructions, the L bit is applicable for 64-bit implementations. For the MPC860,
if L = 1 the instruction form is invalid. The core ignores this bit and, therefore, the behavior when L = 1 is
identical to the valid form instruction with L = 0.
Subtract from Minus One Extended
subfme
(
subfme. subfmeo
subfmeo.
)
r
D
,r
A
Add to Zero Extended
addze
(
addze.
addzeo
addzeo.
)
r
D
,r
A
Subtract from Zero Extended
subfze
(
subfze. subfzeo
subfzeo.
)
r
D
,r
A
Negate
neg
(
neg.
nego
nego.
)
r
D
,r
A
Multiply Low Immediate
mulli
r
D
,r
A
,
SIMM
Multiply Low
mullw
(
mullw.
mullwo
mullwo.
)
r
D
,r
A
,r
B
Multiply High Word
mulhw
(
mulhw.
)
r
D
,r
A
,r
B
Multiply High Word Unsigned
mulhwu
(
mulhwu.
)
r
D
,r
A
,r
B
Divide Word
divw
1
(
divw.divwo divwo.
)
r
D
,r
A
,r
B
Divide Word Unsigned
divwu
(
divwu.
divwuo
divwuo.
)
r
D
,r
A
,r
B
Table 6-3. Integer Compare Instructions
Name
Mnemonic
Syntax
1
Compare Immediate
cmpi
crf
D
,
L
,r
A
,
SIMM
Compare
cmp
crf
D
,
L
,r
A
,r
B
Compare Logical Immediate
cmpli
crf
D
,
L
,r
A
,
UIMM
Compare Logical
cmpl
crf
D
,
L
,r
A
,r
B
Table 6-2. Integer Arithmetic Instructions (Continued)
Name Mnemonic
Syntax
Содержание 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: ......