
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
Kommentare zu diesen Handbüchern