Bit Manipulation Instructions - Motorola CPU32 Reference Manual

M68300 series central processor unit
Hide thumbs Also See for CPU32:
Table of Contents

Advertisement

III
Table 4-5. Shift and Rotate Operations
Instruction
Syntax
Operand
Operation
Size
On, On
8,16,32
ASL
#(data), On
8,16,32
~t(
1--0
(ea)
16
On, On
8,16,32
c:s
>~
ASR
#(data), On
8,16,32
(ea)
16
On, On
8,16,32
LSL
#(data), On
8,16,32
~t(
1--0
(ea)
16
On,On
8,16,32
LSR
#(data), On
8,16,32
o~
>
~
(ea)
16
On, On
8,16,32
~t(
;J
ROL
#(data), On
8,16,32
(ea)
16
On,On
8,16,32
~
>~
ROR
#(data), On
8,16,32
(ea)
16
On, On
8,16,32
~t(
~
ROXL
#(data), On
8,16,32
(ea)
16
On, Dn
8,16,32
LCIH
>~
ROXR
#(data), Dn
8,16,32
(ea)
16
SWAP
On
16
I
+
I
+
I
4.3.6 Bit Manipulation Instructions
Bit manipulation operations are accomplished using the following instructions:
bit test (BT8T), bit test and set (B8ET), 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 4-6 is a summary of bit manipulation instructions.
MOTOROLA
4-12
INSTRUCTION SET
CPU32 REFERENCE MANUAL

Advertisement

Table of Contents
loading

Table of Contents