Hitachi HIDIC MICRO-EH Applications Manual page 126

Table of Contents

Advertisement

Item number
Application instructions-7
Ladder format
ROL (d, n)
Instruction format
ROL (d, n)
Usable I/O
d
I/O to be rotated
Number of bits to be
n
rotated
Function
Rotates the contents of d to the left (toward the upper digits) by n bits.
The content of C (R7F0) is set in the nth bit from the least significant bit.
The content of the nth bit from the least significant bit is set in C (R7F0).
Before execution
C (R7F0)
After execution
Bn
If d is a word:
Designates the shift amount, depending on the contents (0 to 15) of the lower 4 bits (b3 to b0) of n
(WX, WY, WR, WM, TC). (Upper bits are ignored and considered as "0.")
The n (constant) can be set to 0 to 15 (decimal).
If d is a double word:
Designates the shift amount, depending on the contents (0 to 31) of the lower 5 bits (b4 to b0) of n
(WX, WY, WR, WM, TC). (Upper bits are ignored and considered as "0.")
The n (constant) can be set to 0 to 31 (decimal).
Notes
If n is equal to "0," the rotation is not performed. The previous state is retained in C.
Name
Condition code
R7F4
R7F3
R7F2
DER
ERR
SD
Number of steps
Condition
Bit
R,
TD, SS,
X
Y
M
CU, CT
WX WY
n bits
B1 B2 B3
Bn
Most significant bit (MSB)
5-76
Chapter 5 Instruction Specifications
Rotate left
Processing time (µs)
R7F1
R7F0
Average Maximum
V
C
46
Steps
3
54
Word
Double word
WR,
WM TC DX DY
d
C
B1 B2 B3
n bits
Least significant bit (LSB)
Remark
Upper case: W
Lower case: DW
DR,
Other
DM
The constant is set in
decimal.
Bn-1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents