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

Скачать
Страница из 1204
7-35
ROR(P),RCR(P)
1
2
3
4
6
6
7
8
7
.2 Rotation instr
uct
ion
7
.2.1 Right rota
tion o
f 16-bit data (
ROR(P),
RCR(
P)
)
7.2  
Rotation instruction
7.2.1  
Right rotation of 16-bit data (ROR(P),RCR(P))
ROR(P),RCR(P)
Function
ROR
(1) Rotates 16-bit data of the device designated by 
, not including the carry flag, n-bits to the right.
The carry flag is ON or OFF depending on the status prior to the execution of the ROR 
instruction.
: Head number of the devices to rotate (BIN 16 bits)
 n
: Number of rotations (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
ROR, RCR
RORP, RCRP
indicates an instruction symbol of ROR/RCR.
D
D
D
b8
b15 b14 b13 b12 b11 b10 b9
b7 b6 b5 b4 b3 b2 b1 b0
b8
b15 b14 b13 b12 b11 b10 b9
b7 b6 b5 b4 b3 b2 b1 b0
b8
b15 b14 b13 b12 b11 b10 b9
b7 b6 b5 b4 b3 b2 b1 b0
b8
b15 b14 b13 b12 b11 b10 b9
b7 b6 b5 b4 b3 b2 b1 b0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
Carry flag
(SM700)
D
D
D
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
1
D
Value of b0
Value of b0
0
Carry flag
(SM700)
Right rotation (1 bit)
Right rotation (1 bit)
1
Value of b0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
Value of b0
Carry flag
(SM700)
0
Value of b(n-1)
Carry flag
(SM700)
Right rotation (n bits)
Value of b(n-1)