1) Rotl (B) - Hitachi H8/300H Series Programming Manual

Table of Contents

Advertisement

2.2.47 (1) ROTL (B)

ROTL (ROTate Left)
Operation
Rd (left rotation) → Rd
Assembly-Language Format
ROTL.B Rd
Operand Size
Byte
Description
This instruction rotates the bits in an 8-bit register Rd (destination register) one bit to the left. The
most significant bit is rotated to the least significant bit (bit 0), and also copied to the carry flag.
MSB
C
b
7
Available Registers
Rd: R0L to R7L, R0H to R7H
Operand Format and Number of States Required for Execution
Addressing
Mnemonic
Mode
Register direct
ROTL.B
Notes
. . . . . .
Operands
1st byte
Rd
1
2
147
Condition Code
I
UI H
U
— — — —
H: Previous value remains unchanged.
N: Set to 1 if the result is negative; otherwise
cleared to 0.
Z: Set to 1 if the result is zero; otherwise
cleared to 0.
V: Always cleared to 0.
C: Receives the previous value in bit 7.
LSB
b
0
Instruction Format
2nd byte
3rd byte
8
rd
Rotate
N
Z
V
C
0
No. of
States
4th byte
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents