6 BASIC INSTRUCTIONS
6.5 Shift Instructions
373
6
• These instructions shift the (n2) word(s) of area to the right within the (n1) words of data area starting from the device
specified by (d). After the shift, (n2) points of area from (s) are set into (n2) points of area from (d)+(n1-n2).
• When a constant is specified for (s), the specified value is stored in (n2) point(s) of area in the device from (d) + (n1-n2)
after the shift.
• When (n2) is 0, the processing is not performed.
When (n1)=9 and (n2)=4
Overflow (data to be deleted)
(n2)-word shift to the right
Copy
Error code
(SD0)
Description
2821H The range for (n2) points from (s) and that for (n1) points from (d) are overlapping.
3405H The values specified in (n1) and (n2) are such that (n1)<(n2).
(n2)
(d)+8 (d)+7 (d)+6 (d)+5 (d)+4 (d)+3 (d)+2 (d)+1 (d)
(d)+4 (d)+3 (d)+2 (d)+1(d)+8 (d)+7 (d)+6 (d)+5 (d)
30FH 1EH 100H 0H 1FFH 10H 1FH 7FFH 2AH
30FH 1EH 100H 0H 1FFH
(n1)
(s)+3 (s)+2 (s)+1 (s)
Ò
Ó
Ô