beautypg.com

Rlc rotate left circular (byte) – Zilog Z80380 User Manual

Page 181

background image

5-147

Z380

U

SER

'

S

M

ANUAL

Z

ILOG

DC-8297-03

RLC

ROTATE LEFT CIRCULAR (BYTE)

RLC dst

dst = R, IR, X

Operation:

tmp

dst

C

dst(7)

dst(0)

tmp(7)

dst(n+1)

tmp(n) for n = 0 to 6

The contents of the destination operand are rotated left one bit position. Bit 7 of the
destination operand is moved to the bit 0 position and also replaces the Carry flag.

Flags:

S: Set if the most significant bit of the result is set; cleared otherwise
Z: Set if the result is zero; cleared otherwise
H: Cleared
P: Set if parity of the result is even; cleared otherwise
N: Cleared
C: Set if the bit rotated from bit 7 was a 1; cleared otherwise

Addressing

Execute

Mode

Syntax

Instruction Format

Time

Note

R:

RLC R

11001011 00000-r-

2

IR:

RLC (HL)

11001011 00000110

2+r

X:

RLC (XY+d)

11y11101 11001011 ——d— 00000110

4+r

I

Field Encodings:

r:

per convention

y:

0 for IX, 1 for IY