Appendix AInstruction Set
532
Name, mnemonic, variations,
and symbol
PageOperand data
areas
Function
ARITHMETIC SHIFT LEFT
ASL, jASL
(060)
ASL Wd
Each bit within a single word of data (Wd) is
shifted one bit to the left, with zero written to
bit 00 and bit 15 moved to CY.
Wd
15 00
CY
0
Wd:
CIO
G
A
DM
173
ARITHMETIC SHIFT RIGHT
ASR, jASR
(061)
ASR Wd
Each bit within a single word of data (Wd) is
shifted one bit to the right, with zero written to
bit 15 and bit 00 moved to CY.
0
Wd CY
15 00
Wd:
CIO
G
A
DM
DR
IR
174
ROTATE LEFT
ROL, jROL
(062)
ROL Wd
Each bit within a single word of data (Wd) is
moved one bit to the left, with bit 15 moving to
carry (CY) and CY moving to bit 00.
15 00
CY
Wd
Wd:
CIO
G
A
DM
DR
IR
175
ROTATE RIGHT
ROR, jROR
(063)
ROR Wd
Each bit within a single word of data (Wd) is
moved one bit to the right, with bit 00 moving
to carry (CY) and CY moving to bit 15.
15 00
CY Wd
Wd:
CIO
G
A
DM
DR
IR
176
DOUBLE SHIFT LEFT
ASLL, jASLL
(064)
ASLL Wd
Each bit within two consecutive words of data
(Wd and Wd+1) is shifted one bit to the left,
with zero written to bit 00 of Wd and bit 15 of
Wd+1 moved to CY.
Wd+1
15 00
CY
15 00
0
Wd
Wd:
CIO
G
A
DM
177
DOUBLE SHIFT RIGHT
ASRL, jASRL
(065)
ASRL Wd
Each bit within two consecutive words of data
(Wd and Wd+1) is shifted one bit to the right,
with zero written to bit 15 of Wd+1 and bit 00
of Wd moved to CY.
15 00
0
Wd CY
15 00
Wd+1
Wd:
CIO
G
A
DM
178
DOUBLE ROTATE LEFT
ROLL, jROLL
(066)
ROLL Wd
Each bit within two consecutive words of data
(Wd and Wd+1) is moved one bit to the left,
with bit 15 of Wd+1 moving to carry (CY) and
CY moving to bit 00 of Wd.
15 00
CY
Wd+1
15 00
Wd
Wd:
CIO
G
A
DM
179
DOUBLE ROTATE RIGHT
RORL, jRORL
(067)
RORL Wd
Each bit within two consecutive words of data
(Wd and Wd+1) is moved one bit to the right,
with bit 00 of Wd moving to carry (CY) and CY
moving to bit 15 of Wd+1.
15 00
CY
Wd+1 Wd
15 00
Wd:
CIO
G
A
DM
182