Appendices
A-16
CP2E CPU Unit Software User’s Manual(W614)
ARITHMETIC
SHIFT RIGHT
ASR @ Shifts the contents of Wd one bit to the right.
DOUBLE
SHIFT RIGHT
ASRL @ Shifts the contents of Wd and Wd +1 one bit to the right.
ROTATE LEFT ROL @ Shifts all Wd bits one bit to the left including the Carry Flag (CY).
DOUBLE
ROTATE LEFT
ROLL @ Shifts all Wd and Wd +1 bits one bit to the left including the Carry
Flag (CY).
ROTATE
RIGHT
ROR @ Shifts all Wd bits one bit to the right including the Carry Flag (CY).
DOUBLE
ROTATE
RIGHT
RORL @ Shifts all Wd and Wd +1 bits one bit to the right including the Carry
Flag (CY).
ONE DIGIT
SHIFT LEFT
SLD @ Shifts data by one digit (4 bits) to the left.
ONE DIGIT
SHIFT RIGHT
SRD @ Shifts data by one digit (4 bits) to the right.
Instruction Mnemonic Variations Symbol/Operand Function
ASR(026)
Wd
Wd: Word
015
1 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
0
CY
01
Wd: 100CH
1 0 0 1 0 0 0 1 0 0 0 1 0 0 0
ASRL(571)
Wd
Wd: Word
Wd Wd
Wd
ROL(027)
Wd: Word
ROLL(572)
Wd
Wd: Word
Wd+1
Wd
ROR(028)
Wd
Wd: Word
Wd
RORL(573)
Wd
Wd: Word
Wd
Wd+1
SLD(074)
St
E
St: Starting word
E: End word
ESt
Lost
SRD(075)
St
E
St: Starting word
E: End word
ESt
Lost