A-23
Appendices
CJ2 CPU Unit Software User’s Manual
A-1 Instruction Functions
App
A-1-7 Data Shift Instructions
SHIFT N-BIT
DATA RIGHT
NSFR
@NSFR
579 Output Required
SHIFT N-BITS
LEFT
NASL
@NASL
580 Output Required
DOUBLE
SHIFT N-BITS
LEFT
NSLL
@NSLL
582 Output Required
SHIFT N-BITS
RIGHT
NASR
@NASR
581 Output Required
DOUBLE
SHIFT N-BITS
RIGHT
NSRL
@NSRL
583 Output Required
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
NSFR(579)
D
C
N
D: Beginning
word for shift
C: Beginning bit
N: Shift data
length
N −1 bit
N −1 bit
Shifts one bit to the right
Shifts the specified number of bits to the right.
NASL(580)
D
C
D: Shift word
C: Control word
Shift n-bits
Lost
N bits
Contents of
"a" or "0"
shifted in
Shifts the specified 16 bits of word data to the left by the
specified number of bits.
NSLL(582)
D
C
D: Shift word
C: Control word
Shift n-bits
Lost
N bits
Shifts the specified 32 bits of word data to the left by the
specified number of bits.
Contents
of "a" or
"0" shifted
in
NASR(581)
D
C
D: Shift word
C: Control word
Lost
N bits
Contents of
"a" or "0"
shifted in
Shifts the specified 16 bits of word data to the right
by the specified number of bits.
NSRL(583)
D
C
D: Shift word
C: Control word
Shift n-bits
Lost
Contents
of "a" or
"0" shifted
in
Shifts the specified 32 bits of word data to the right by the
specified number of bits.