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

Table of Contents

Advertisement

2.2.56 (1) SHLR (B)

SHLR (SHift Logical Right)
Operation
Rd (right logical shift) → Rd
Assembly-Language Format
SHLR.B Rd
Operand Size
Byte
Description
This instruction shifts the bits in an 8-bit register Rd (destination operand) one bit to the right. The
least significant bit shifts into the carry flag. The most significant bit (bit 7) is cleared to 0.
MSB
0
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
SHLR.B
Notes
. . . . . .
Operands
1st byte
Rd
1
Condition Code
I
UI H
— — — —
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 0.
LSB
b
C
0
Instruction Format
2nd byte
3rd byte
1
0
rd
170
Shift Logical
U
N
Z
V
C
0
0
No. of
States
4th byte
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents