Chapter 9 Instruction list
CPU ADAM 821x
Command
Operand
Parameter
Status word
Function
Length
in
BR
CC1 CC0 OV OS OR STA RLO /FC
words
: Instruction depends on
: Instruction influences
8-18
ADAM 8000 Manual CPU 821x – Rev 1.1
Shift instructions
Shift instructions
Status word
Shifting the contents of ACCU1 and ACCU1-L
to the left or right by the specified number of
places. If no address identifier is specified, shift
the number of places into ACCU2-LL. Any
positions that become free are padded with
zeros or the sign.
The last shifted bit is in condition code bit CC1.
SLW -
BR
CC1 CC0 OV OS OR STA RLO /FC
Shift the contents of ACCU1-L to the left.
1
SLW
0 ... 15
- - - - - - - - - Positions that become free are provided with zeros
SLD -
- Y Y Y - - - - - Shift the contents of ACCU1 to the left.
1
SLD
0 ... 32
Positions that become free are provided with zeros.
SRW -
Shift the contents of ACCU1-L to the right.
1
SRW 0 ... 15
Positions that become free are provided with zeros.
SRD -
Shift the contents of ACCU1 to the right.
1
SRD
0 ... 32
Positions that become free are provided with zeros.
SSI -
Shift the contents of ACCU1-L to the right with sign.
1
SSI
0 ... 15
Positions that become free are provided with the sign
(Bit 15) .
SSD -
Shift the contents of ACCU1 to the right with sign
1
SSD
0 ... 32
Rotation instructions
Status word
Rotate the contents of ACCU1 to the left or
right by the specified number of places. If no
address identifier is specified, rotate the
number of places into ACCU2-LL.
RLD -
BR
CC1 CC0 OV OS OR STA RLO /FC
Rotate the contents of ACCU1 to the left.
1
RLD
0 ... 32
- - - - - - - - -
RRD -
- Y Y Y - - - - - Rotate the contents of ACCU1 to the right.
1
RRD
0 ... 32
RLDA -
BR
CC1 CC0 OV OS OR STA RLO /FC
Rotate the contents of ACCU1 one bit position to the left,
- - - - - - - - - via CC1 bit.
RRDA -
- Y 0 0 - - - - - Rotate the contents of ACCU1 one bit position to the right,
via CC1 bit.