Bit Manipulation Instructions - Motorola MC68340 User Manual

Integrated processor with dma
Hide thumbs Also See for MC68340:
Table of Contents

Advertisement

Instruction
ASL
# data Dn
ASR
# data Dn
LSL
# data Dn
LSR
# data Dn
ROL
# data Dn
ROR
# data Dn
ROXL
# data Dn
ROXR
# data Dn
SWAP
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.
Instruction
BCHG
# data
BCLR
# data
BSET
# data
BTST
# data
MOTOROLA
Freescale Semiconductor, Inc.
Table 5-7. Shift and Rotate Operations
Operand
Syntax
Operand Size
Dn, Dn
8, 16, 32
8, 16, 32
ea
16
Dn, Dn
8, 16, 32
8, 16, 32
ea
16
Dn, Dn
8, 16, 32
8, 16, 32
ea
16
Dn, Dn
8, 16, 32
8, 16, 32
ea
16
Dn, Dn
8, 16, 32
8, 16, 32
ea
16
Dn, Dn
8, 16, 32
8, 16, 32
ea
16
Dn, Dn
8, 16, 32
8, 16, 32
ea
16
Dn, Dn
8, 16, 32
8, 16, 32
ea
16
Dn
16
Table 5-8. Bit Manipulation Operations
Operand
Syntax
Operand Size
Dn, ea
8, 32
ea
8, 32
Dn, ea
8, 32
ea
8, 32
Dn, ea
8, 32
ea
8, 32
Dn, ea
8, 32
ea
8, 32
MC68340 USER'S MANUAL
For More Information On This Product,
Go to: www.freescale.com
Operation
X/C
X/C
0
C
C
X
MSW
Operation
~( bit number of destination)
destination
~( bit number of destination)
destination
~( bit number of destination)
destination
~ bit number of destination)
0
X/C
0
X/C
C
X
C
LSW
Z
bit of
Z; 0
bit of
Z; 1
bit of
Z
5- 25

Advertisement

Table of Contents
loading

Table of Contents