Appendix AInstruction Set
530
Name, mnemonic, variations,
and symbol
PageOperand data
areas
Function
REVERSIBLE SHIFT REGISTER
SFTR, jSFTR
(051)
SFTR C St E
Shifts bits in the specified word or series of
words either left or right. Starting (St) and
ending words (E) must be specified. Control
word (C) contains shift direction, reset input,
and data input. (Bit 12: 0 = shift right, 1 = shift
left. Bit 13 is the value shifted in, with the bit at
the opposite end being moved to CY. Bit 14: 1
= shift enabled, 0 = shift disabled. If bit 15 is
ON when SFTR(051) is executed with an ON
condition, the entire shift register and CY will
be set to zero.) St and E must be in the same
data area and St must be less than or equal to
E.
CY
ESt
15
00
CY
E
IN
St
IN
00 15 00
15 00 15
C:
CIO
G
A
DM
DR
IR
St:
CIO
G
A
DM
E:
CIO
G
A
DM
162
ASYNCHRONOUS SHIFT REGISTER
ASFT, jASFT
(052)
ASFT C St E
Exchanges the contents of adjacent words
when the contents of one of the words is zero
and the other is non-zero. By repeating the
instruction several times, all of the words with
a content of zero accumulate at the lower or
higher end of the range defined by St and E. If
C contains 4000, non-zero words are shifted
to the next higher address; if C contains 6000,
non-zero words are shifted to the next lower
address; and if C contains 8000, all words in
the register are set to zero.
C:
CIO
G
A
DM
DR
IR
St:
CIO
G
A
DM
E:
CIO
G
A
DM
163
WORD SHIFT
WSFT, jWSFT
(053)
WSFT S St E
The data in the source word (S) is transferred
into the starting word (St), and the data in the
words from the starting word (St) through to
the ending word (E) is shifted left in word
units. The data in the ending word is lost. St
must be less than or equal to E, and St and E
must be in the same data area.
S:
CIO
G
A
T/C
#
DM
DR
IR
St:
CIO
G
A
DM
E:
CIO
G
A
DM
165
SHIFT N-BIT DATA LEFT
NSFL, ↑NSFL
(054)
NSFL D C N
(V2 only) Shifts the specified number of bits (i.e., the
shift data length), from the beginning bit of the
beginning word, one bit at a time to the left. A
“0” is entered for the beginning bit (bit C of
word D). The status of the Nth bit is then
shifted to CY.
CY
D Wd: C bit
N bits
0
D Wd
D:
CIO
G
A
C:
CIO
G
A
T/C
#
DM
DR
IR
N:
CIO
G
A
T/C
#
DM
DR
IR
166