7-56
SFTWR(P),SFTWL(P)
7.3.5 n-bit shift to right or left of n-word data (SFTWR(P),SFTWL(P))
SFTWR(P),SFTWL(P)
Function
SFTWR(P)
(1) This instruction shifts n1 words data in the devices starting from the device specified by to
the right by n2 words.
n1=9, n2=4
(2) The n2 words data in the devices starting from the highest device are filled with 0s.
(3) If the value specified by n1 or n2 is 0, the instruction will be not processed.
(4) If the value of n2 is equal to or larger than the value of n1, the n1 words data in the devices
starting from the device specified by will be filled with 0s.
QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.
QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.
: Head number of the devices to be shifted (BIN 16 bits)
n1 : Number of words to be shifted (BIN 16 bits)
n2 : Number of shifts (BIN 16 bits)
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
K, H
Other
Bit Word Bit Word
–– –– ––
n1 –– ––
n2 –– ––
Basic
Process
High
performance
Redundant
Ver.
Universal
Command
Command
SFTWR,SFTWL
SFTWRP,SFTWLP
P
n2
n2
D
n1
n1
D
indicates an instruction symbol of SFTWR/SFTWL.
D
D
D
Filled with 0H
2
1
D D
3
D
4
D
5
D
n2
6
D
7
D
8
D D
n1
2
1
D D
3
D
4
D
5
D
6
D
7
D
8
D D
30F
H
0
HH HH HH HH H
HHHHHHHH
1E 100 0 1FF 10 1F 7FF 2A
0 0 0 30F 1E 100 0 1FF
D