55
CS/CJ/NSJ Series Instructions Reference Manual (W474)
2. Summary of Instructions
2-2 Instruction Functions
2
2-2-7 Data Shift Instructions
ARITHMETIC
SHIFT RIGHT
ASR
@ASR
026
Output
Required
317
DOUBLE SHIFT
RIGHT
ASRL
@ASRL
571
Output
Required
317
ROTATE LEFT
ROL
@ROL
027
Output
Required
319
DOUBLE
ROTATE LEFT
ROLL
@ROLL
572
Output
Required
319
ROTATE LEFT
WITHOUT
CARRY
RLNC
@RLNC
574
Output
Required
321
DOUBLE
ROTATE LEFT
WITHOUT
CARRY
RLNL
@RLNL
576
Output
Required
321
ROTATE RIGHT
ROR
@ROR
028
Output
Required
323
DOUBLE
ROTATE RIGHT
RORL
@RORL
573
Output
Required
323
ROTATE RIGHT
WITHOUT
CARRY
RRNC
@RRNC
575
Output
Required
325
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution
condition
Page
ASR(026)
Wd
Wd: Word
Shifts the contents of Wd one bit to the right.
ASRL(571)
Wd
Wd: Word
WdWd+1
Shifts the contents of Wd and Wd +1 one bit to the right.
ROL(027)
Wd
Wd: Word
Shifts all Wd bits one bit to the left including the Carry Flag (CY).
ROLL(572)
Wd
Shifts all Wd and Wd + 1 bits one bit to the left including the Carry Flag
(CY).
Wd+1
Wd
RLNC(574)
Wd
Wd: Word
Wd
Shifts all Wd bits one bit to the left not including the Carry Flag (CY).
RLNL(576)
Wd
Wd: Word
Wd+1 Wd
Shifts all Wd and Wd +1 bits one bit to the left not including the Carry
Flag (CY).
ROR(028)
Wd: Word
Wd
Wd
Wd+1
Shifts all Wd bits one bit to the right including the Carry Flag (CY).
RORL(573)
Wd
Wd: Word
Wd
Wd+1
Shifts all Wd and Wd +1 bits one bit to the right including the Carry
Flag (CY).
RRNC(575)
Wd
Wd: Word
Wd
Shifts all Wd bits one bit to the right not including the Carry Flag (CY).
The contents of the rightmost bit of Wd shifts to the leftmost bit and to
the Carry Flag (CY).