Freescale Semiconductor PowerQUICC MPC885 Reference Manual page 178

Powerquicc family
Table of Contents

Advertisement

MPC885 Instruction Set
Name
Subtract From
Add Immediate Carrying
Add Immediate Carrying and Record
Subtract from Immediate Carrying
Add Carrying
Subtract from Carrying
Add Extended
Subtract from Extended
Add to Minus One Extended
Subtract from Minus One Extended
Add to Zero Extended
Subtract from Zero Extended
Negate
Multiply Low Immediate
Multiply Low
Multiply High Word
Multiply High Word Unsigned
Divide Word
Divide Word Unsigned
1
Implementation Note: Attempting to use divw to perform either 0x80000000
contents of rD to 0x80000000, and if Rc =1, the contents of CR0 are LT = 1, GT = 0, and EQ = 0. SO is set to the
correct value.
Although there is no Subtract Immediate instruction, its effect can be achieved by using an addi instruction
with the immediate operand negated. Simplified mnemonics are provided that include this negation. The
subf instructions subtract the second operand (rA) from the third operand (rB). Simplified 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.
5.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.
instructions.
5-8
Table 5-2. Integer Arithmetic Instructions (continued)
subf (subf.subfo subfo.)
addic
addic.
subfic
addc (addc.addco addco.)
subfc (subfc.subfco subfco.)
adde (adde.addeo addeo.)
subfe (subfe.subfeo subfeo.)
addme (addme.addmeo addmeo.)
subfme (subfme.subfmeo subfmeo.)
addze (addze.addzeo addzeo.)
subfze (subfze.subfzeo subfzeo.)
neg (neg.nego nego.)
mulli
mullw (mullw.mullwo mullwo.)
mulhw (mulhw.)
mulhwu (mulhwu.)
1
divw
(divw.divwo divwo.)
divwu (divwu.divwuo divwuo.)
MPC885 PowerQUICC Family Reference Manual, Rev. 2
Mnemonic
÷
-1 or <anything>
Table 5-3
lists the integer compare
Syntax
rD,rA,rB
rD,rA,SIMM
rD,rA,SIMM
rD,rA,SIMM
rD,rA,rB
rD,rA,rB
rD,rA,rB
rD,rA,rB
rD,rA
rD,rA
rD,rA
rD,rA
rD,rA
rD,rA,SIMM
rD,rA,rB
rD,rA,rB
rD,rA,rB
rD,rA,rB
rD,rA,rB
÷
0 sets the
Freescale Semiconductor

Advertisement

Table of Contents
loading

This manual is also suitable for:

Powerquicc mpc870Powerquicc mpc880Powerquicc mpc875

Table of Contents