Справочник Пользователя для Mitsubishi Electronics QCPU

Скачать
Страница из 1204
7-46
SFR(P),SFL(P)
7.3  
Shift instruction
7.3.1  
n-bit shift to right or left of 16-bit data (SFR(P),SFL(P))
SFR(P),SFL(P)
Function
SFR
(1) Causes a shift to the right by n bits of the 16-bit data from the device designated at 
.
The n bits from the upper bit are filled with 0s.
(2) When a bit device is designated for 
, a right shift is executed within the device range 
specified by digit specification.
: Head number of the devices where shift data is stored (BIN 16 bits)
 n
: Number of shifts (0 to 15) (BIN 16 bits)
Setting 
Data
Internal Devices 
R, ZR
J
\
U
\G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
––
––
n
––
Basic
Process
High
performance
Redundant Universal
Command
Command
P
D
n
D
n
SFR, SFL
SFRP, SFLP
indicates an instruction symbol of SFR/SFL.
D
D
D
1
1
1
0
1
1
1
0
1
1
1
0
1
1
1
0
0
0
0
0
0
0
1
1
1
0
1
1
1
0
1
1
b15
b8
b0
b7
b0
b7
b15
b8
1
b14 b13 b12 b11b10 b9
b6 b5 b4 b3 b2 b1
b14 b13 b12 b11b10 b9
b6 b5 b4 b3 b2 b1
Carry flag
(SM700)
Filled with 0s.
When n=6:
D
D
D
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
1
0
1
0
1
0
1
0
Y18
Y10
Y17
Y10
Y17
Y18
1
Y1B
Y14 Y13
Y1B
Y14 Y13
Carry flag
(SM700)
When n = 4:
Filled with 0s.