SFR
- 166 -
{ SFR ... Right shift of 16-bit data
Usable device
Bit device Word device
Con-
stant
Pointer Level
X Y M L SM F T C D R Z K H P N
Digit
desig-
nation
No. of
steps
Index
D
n
3
SFR
Shift command
n
D
SFR
Setting data
n
No. of device where
shift data is stored.
D
No. of shifts
Function
(1) The 16-bit data of the device designated with D is shifted n bits to the right.
B15 B0
...........................................................
0 0
...
Carry flag
(SM12)
D before execution
D after execution
n
n
0 is entered
(2) n bits from the highest order are set to 0.
(3) The T, C shift will be a current value (attribute value or count value) shift. (Shifting with the setting
value is not possible.)
Execution conditions
The execution conditions for SFR are as shown below.
Right shift command OFF
SFR
ON
Executed per scan
Executed per scan