English
Language : 

GMS30C2216 Datasheet, PDF (86/320 Pages) Hynix Semiconductor – 16/32 BIT RISC/DSP
3-24
CHAPTER 3
Register
L0 : $C000FFFF
L1 : $2
Instruction
SARI
SAL L0, L1
SHRI
SHL L0, L1
L0, $4
L0, $4
; L0 = $FC000FFF
; L0 = $F0003FFF
; L0 = $0C000FFF
; L0 = $30003FFF
3.16 Rotate Left Instruction
The destination operand is shifted left by a number of bit positions and the bits shifted out
are inserted in the vacated bit positions; thus, the destination operand is rotated. The
condition flags are set or cleared accordingly. Bits 4..0 of the source operand specify a
rotation by 0..31 bit positions; bits 31..5 of the source operand are ignored.
The destination operand is interpreted as a bitstring of 32 bits.
Format Notation
Operation
LL
ROL Ld, Ls
Ld := Ld rotated left by Ls(4..0);
Z := Ld = 0;
N := Ld(31);
V := undefined;
C := undefined;
Note: The condition flags are set or cleared by the same rules applying to the Shift Left
instructions.
Register
L0 : $C000FFFF
L1 : $4
Instruction
ROL L0, L1
; L0 = $000FFFFC