Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
7-36
ROR(P),RCR(P)
(2) When a bit device is designated for , a rotation is performed within the device range
specified by digit specification.
The number of bits by which a rotation is carried out is the remainder of n/(specified number
of bits).
For example, when n 15 and (specified number of bits) 12 bits, the remainder of 15/12
1 is "3", and the data is rotated 3 bits.
(3) Specify any of 0 to 15 as n.
If the value specified as n is 16 or greater, the remainder of n / 16 is used for rotation.
For example, when n 18, the contents are rotated two bits to the right since the remainder
of 18 / 16 1 is "2".
RCR
(1) Rotates 16-bit data of the device designated by , 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.
(2) When a bit device is designated for , a rotation is performed within the device range
specified by digit specification.
The number of bits by which a rotation is executed is the remainder of n/(specified number of
bits).
For example, when n 15 and (specified number of bits) 12 bits, the remainder of 15/12
1 is "3", and the data is rotated 3 bits.
(3) Specify any of 0 to 15 as n.
If the value specified as n is 16 or greater, the remainder of n / 16 is used for rotation.
For example, when n 18, the contents are rotated two bits to the right since the remainder
of 18 / 16 1 is "2".
D
D
b7
b15 b8b14 b13 b12 b11 b10 b9 b6
b5
b4 b3 b2 b1 b0
b7
b15 b8b14 b13 b12 b11 b10 b9 b6
b5
b4 b3 b2 b1 b0
b7
b15 b8b14 b13 b12 b11 b10 b9 b6
b5
b4 b3 b2 b1 b0
b7
b15 b8b14 b13 b12 b11 b10 b9 b6
b5
b4 b3 b2 b1 b0
1
0
00000000 0
0
001
0
0
Carry flag
(SM700)
0
0
00000000 0
0
0001
D
D
D
D
Value of carry flag
Value of carry flag
Carry flag
(SM700)
Right rotation (1 bit)
Right rotation (1 bit)
1
Value of b0
1
0
10000000 0
0
000
0
Carry flag
(SM700)
0
Value of b0
Carry flag
(SM700)
Right rotation (n bits)
Value of b(n-1)
D