beautypg.com

Bit b, (hl) – Zilog Z08470 User Manual

Page 255

background image

UM008007-0715

Z80 Instruction Description

Z80 CPU

User Manual

243

BIT b, (HL)

Operation

Z ← (HL)b

Op Code

BIT

Operands

b, (HL)

Description

This instruction tests bit b in the memory location specified by the contents of the HL reg-
ister pair and sets the Z flag accordingly. In the assembled object code, operand b is speci-
fied as follows:

Condition Bits Affected

S is unknown.

Bit Tested

b

0

000

1

001

2

010

3

011

4

100

5

101

6

110

1

111

M Cycles

T States

4 MHz E.T.

3

12 (4, 4, 4) 4

3.00

1

1

0

1

1

0

0

1

CB

0

1

b

1

0

1

This manual is related to the following products: