Freescale Semiconductor PowerQUICC MPC885 Reference Manual page 180

Powerquicc family
Table of Contents

Advertisement

MPC885 Instruction Set
Name
Equivalent
AND with Complement
OR with Complement
Extend Sign Byte
Extend Sign Half Word
Count Leading Zeros Word
5.2.4.1.4
Integer Rotate and Shift Instructions
Rotation operations are performed on data from a GPR, and the result, or a portion of the result, is returned
to a GPR. See Appendix F, "Simplified Mnemonics," in The Programming Environments Manual for a
complete list of simplified mnemonics that allows simpler coding of often-used functions such as clearing
the leftmost or rightmost bits of a register, left justifying or right justifying an arbitrary field, and simple
rotates and shifts.
Integer rotate instructions rotate the contents of a register. The result of the rotation is either inserted into
the target register under control of a mask (if a mask bit is 1 the associated bit of the rotated data is placed
into the target register, and if the mask bit is 0 the associated bit in the target register is unchanged), or
ANDed with a mask before being placed into the target register. The integer rotate instructions are listed
in
Table
5-5.
Name
Rotate Left Word Immediate then AND with Mask
Rotate Left Word then AND with Mask
Rotate Left Word Immediate then Mask Insert
The integer shift instructions perform left and right shifts. Immediate-form logical (unsigned) shift
operations are obtained by specifying masks and shift values for certain rotate instructions. Simplified
mnemonics are provided to make coding of such shifts simpler and easier to understand. The integer shift
instructions are listed in
Name
Shift Left Word
Shift Right Word
Shift Right Algebraic Word Immediate
Shift Right Algebraic Word
5-10
Table 5-4. Integer Logical Instructions (continued)
Table 5-5. Integer Rotate Instructions
Table
5-6.
Table 5-6. Integer Shift Instructions
MPC885 PowerQUICC Family Reference Manual, Rev. 2
Mnemonic
eqv (eqv.)
andc (andc.)
orc (orc.)
extsb (extsb.)
extsh (extsh.)
cntlzw (cntlzw.)
Mnemonic
rlwinm (rlwinm.)
rlwnm (rlwnm.)
rlwimi (rlwimi.)
Mnemonic
slw (slw.)
srw (srw.)
srawi (srawi.)
sraw (sraw.)
Syntax
rA,rS,rB
rA,rS,rB
rA,rS,rB
rA,rS
rA,rS
rA,rS
Syntax
rA,rS,SH,MB,ME
rA,rS,rB,MB,ME
rA,rS,SH,MB,ME
Syntax
rA,rS,rB
rA,rS,rB
rA,rS,SH
rA,rS,rB
Freescale Semiconductor

Advertisement

Table of Contents
loading

This manual is also suitable for:

Powerquicc mpc870Powerquicc mpc880Powerquicc mpc875

Table of Contents