
2-22
MPC603e & EC603e RISC Microprocessors User's Manual
MOTOROLA
2.3.4.1.1 Integer Arithmetic Instructions
Table 2-9 lists the integer arithmetic instructions for the 603e.
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 (
r
A) from the
third operand (
r
B). 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.
2.3.4.1.2 Integer Compare Instructions
The integer compare instructions algebraically or logically compare the contents of
r
A with
either the UIMM operand, the SIMM operand, or the contents of
r
B. The comparison is
Table 2-9. Integer Arithmetic Instructions
Name
Mnemonic
Operand Syntax
Add Immediate
addi
r
D
,r
A
,
SIMM
Add Immediate Shifted
addis
r
D
,r
A
,
SIMM
Add
add (add.
addo
addo.)
r
D
,r
A
,r
B
Subtract From
subf (subf. subfo subfo.)
r
D
,r
A
,r
B
Add Immediate Carrying
addic
r
D
,r
A
,
SIMM
Add Immediate Carrying and Record
addic.
r
D
,r
A
,
SIMM
Subtract from Immediate Carrying
subfic
r
D
,r
A
,
SIMM
Add Carrying
addc (addc.
addco
addco.)
r
D
,r
A
,r
B
Subtract from Carrying
subfc (subfc.
subfco
subfco.)
r
D
,r
A
,r
B
Add Extended
adde (adde.
addeo
addeo.)
r
D
,r
A
,r
B
Subtract from Extended
subfe (subfe.
subfeo subfeo.)
r
D
,r
A
,r
B
Add to Minus One Extended
addme (addme. addmeo
addmeo.)
r
D
,r
A
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 (divw.
divwo
divwo.)
r
D
,r
A
,r
B
Divide Word Unsigned
divwu (divwu.
divwuo
divwuo.)
r
D
,r
A
,r
B