Freescale Semiconductor, Inc.
Table 5-7. Shift and Rotate Operations
Operand
Syntax
Instruction
Operand Size
Operation
ASL
Dn, Dn
# data , Dn
ea
8, 16, 32
8, 16, 32
16
X/C
X/C
0
ASR
LSL
Dn, Dn
# data , Dn
ea
8, 16, 32
8, 16, 32
16
X/C
Dn, Dn
# data , Dn
ea
8, 16, 32
8, 16, 32
16
0
LSR
Dn, Dn
# data , Dn
ea
8, 16, 32
8, 16, 32
16
0
X/C
ROL
Dn, Dn
# data , Dn
ea
8, 16, 32
8, 16, 32
16
C
ROR
ROXL
ROXR
SWAP
Dn, Dn
# data , Dn
ea
8, 16, 32
8, 16, 32
16
C
Dn, Dn
# data , Dn
ea
8, 16, 32
8, 16, 32
16
C
X
Dn, Dn
# data , Dn
ea
8, 16, 32
8, 16, 32
16
X
C
Dn
16
MSW
LSW
5.3.3.6 BIT MANIPULATION INSTRUCTIONS. Bit manipulation operations are
accomplished using the following instructions: bit test (BTST), bit test and set (BSET), bit
test and clear (BCLR), and bit test and change (BCHG). All bit manipulation operations
can be performed on either registers or memory. The bit number is specified as immediate
data or in a data register. Register operands are 32 bits long, and memory operands are 8
bits long. Table 5-8 is a summary of bit manipulation instructions.
Table 5-8. Bit Manipulation Operations
Operand
Syntax
Instruction
Operand Size
Operation
BCHG
Dn, ea
# data , ea
8, 32
8, 32
~( bit number of destination)
destination
Z
bit of
BCLR
BSET
BTST
Dn, ea
# data , ea
8, 32
8, 32
~( bit number of destination) Z; 0 bit of
destination
Dn, ea
# data , ea
8, 32
8, 32
~( bit number of destination) Z; 1 bit of
destination
Dn, ea
# data , ea
8, 32
8, 32
~( bit number of destination)
Z
MOTOROLA
MC68340 USER’S MANUAL
5- 25
For More Information On This Product,
Go to: www.freescale.com