A-21
Appendices
CJ2 CPU Unit Software User’s Manual
A-1 Instruction Functions
App
A-1-7 Data Shift Instructions
ASYNCHRO-
NOUS SHIFT
REGISTER
ASFT
@ASFT
017 Output Required
WORD SHIFT WSFT
@WSFT
016 Output Required
ARITHMETIC
SHIFT LEFT
ASL
@ASL
025 Output Required
DOUBLE
SHIFT LEFT
ASLL
@ASLL
570 Output Required
ARITHMETIC
SHIFT RIGHT
ASR
@ASR
026 Output Required
DOUBLE
SHIFT RIGHT
ASRL
@ASRL
571 Output Required
ROTATE LEFT ROL
@ROL
027 Output Required
DOUBLE
ROTATE LEFT
ROLL
@ROLL
572 Output Required
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
ASFT(017)
C
St
E
C: Control word
St: Starting word
E: End word
St
E
St
E
Shift direction
Clear
Shift
Shift
Zero data
Shifts all non-zero word data within the specified word
range either towards St or toward E, replacing 0000Hex
word data.
Shift enabled
Non-zero data
······
WSFT(016)
S
St
E
S: Source word
St: Starting word
E: End word
St
E
Lost
Shifts data between St and E in word units.
ASL(025)
Wd
Wd: Word
Shifts the contents of Wd one bit to the left.
ASLL(570)
Wd
Wd: Word
WdWd+1
Shifts the contents of Wd and Wd +1 one bit to the left.
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.
Wd
ROL(027)
Wd: Word
Shifts all Wd bits one bit to the left including the
Carry Flag (CY).
Wd
ROLL(572)
Wd: Word
Wd+1
Wd
Shifts all Wd and Wd +1 bits one bit to the left including
the Carry Flag (CY).