Download MPC603e RISC Microprocessor User`s Manual

Transcript
Freescale Semiconductor, Inc.
Instruction Set Summary
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 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 2-11 lists the integer compare instructions.
Table 2-11. Integer Compare Instructions
Freescale Semiconductor, nc...
I
Name
Mnemonic
Operand Syntax
Compare
cmp
crfD,L,rA,rB
Compare Immediate
cmpi
crfD,L,rA,SIMM
Compare Logical
cmpl
crfD,L,rA,rB
Compare Logical Immediate
cmpli
crfD,L,rA,UIMM
The crfD operand can be omitted if the result of the comparison is to be placed in CR0.
Otherwise, the target CR field must be specified in the instruction crfD field.
For more information refer to Appendix F, “Simplified Mnemonics,” in the Programming
Environments Manual.
2.3.4.1.3
Integer Logical Instructions
The logical instructions shown in Table 2-12 perform bit-parallel operations. Logical
instructions with the CR update enabled and instructions andi. and andis. set CR field CR0
to characterize the result of the logical operation. These fields are set as if the sign-extended
low-order 32 bits of the result were algebraically compared to zero. Logical instructions
without CR update and the remaining logical instructions do not modify the CR. Logical
instructions do not affect the XER[SO], XER[OV], and XER[CA] bits.
For simplified mnemonics examples for the integer logical operations see Appendix F,
“Simplified Mnemonics,” in the Programming Environments Manual.
Table 2-12. Integer Logical Instructions
Name
Mnemonic
Operand Syntax
AND
and (and.)
rA,rS,rB
AND Immediate
andi.
rA,rS,UIMM
AND Immediate Shifted
andis.
rA,rS,UIMM
AND with Complement
andc (andc.)
rA,rS,rB
Count Leading Zeros Word
cntlzw (cntlzw.)
rA,rS
Equivalent
eqv (eqv.)
rA,rS,rB
MPC603e RISC Microprocessor User’s Manual
For More Information On This Product,
Go to: www.freescale.com