ST10 FAMILY PROGRAMMING MANUAL
109/172
ROL
Rotate Left
Syntax
ROL op1,
op2
Operation
(count) <--
(op2)
(C) <--
0
DO WHILE (count)
≠
0
(C) <--
(op1
15
)
(op1
n
) <--
(op1
n-1
) [n=1...15]
(op1
0
) <--
(C)
(count)
<-- (count) - 1
END WHILE
Data Types
WORD
Description
Rotates the destination word operand op1 left by as many times as specified by the source operand op2.
Bit 15 is rotated into Bit 0 and into the Carry. Only shift values between 0 and 15 are allowed. When using
a GPR as the count control, only the least significant 4 bits are used.
Flags
Addressing Modes
E
Z
V
C
N
0
*
0
S
*
E
Always cleared.
Z
Set if result equals zero. Cleared otherwise.
V
Always cleared.
C
The carry flag is set according to the last most significant bit shifted out of op1. Cleared for a
rotate count of zero.
N
Set if the most significant bit of the result is set. Cleared otherwise.
Mnemonic
Format
Bytes
ROL
Rw
n
, Rw
m
0C nm
2
ROL
Rw
n
, #data
4
1C #n
2
Содержание ST10 Series
Страница 2: ......
Страница 4: ...ST10 FAMILY PROGRAMMING MANUAL 2 172...