Bit Manipulation Instructions; Shift And Rotate Operations - Motorola MC68030 User Manual

Enhanced 32-811 microprocessor
Hide thumbs Also See for MC68030:
Table of Contents

Advertisement

Table 3-4. Shift and Rotate Operations
Instruction
Operand Syntax
Operand Size
Operation
ASL
Dn,Dn
8, 16, 32
#(data),Dn
8,16,32
~
~
1<-0
(ea)
16
ASR
Dn,Dn
8,16,32
#(data),Dn
8,16,32
~
~
~
(ea)
16
LSL
Dn,Dn
8,16,32
#(data),Dn
8,16,32
~
lIE
~o
(ea)
16
LSR
Dn,Dn
8,16,32
#(data),Dn
8,16,32
o~
~
(ea)
16
~
ROL
Dn,Dn
8,16,32
~
~
#(data),Dn
8,16,32
(ea)
16
lIE
ROR
Dn,Dn
8,16,32
Y
~
#(data),Dn
8,16,32
(ea)
16
~
ROXL
Dn,Dn
8,16,32
#(data),Dn
8,16,32
~~
H
X
~-
(ea)
16
ROXR
Dn,Dn
8,16,32
HxH
#(data),Dn
8,16,32
~~
(ea)
16
SWAP
On
32
~
3.2.5 Bit Manipulation Instructions
3-8
Bit manipulation operations are accomplished using the following instruc-
tions: bit test (BT5T), bit test and set (B5ET), 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. In Table 3-5, the summary of the bit manipulation
operations, Z refers to bit 2, the zero bit of the status register.
MC68030 USER'S MANUAL
MOTOROLA

Advertisement

Table of Contents
loading

Table of Contents