Download Z80 CPU User Manual

Transcript
Z80 CPU
User Manual
247
BIT b, (IY+d)
Operation
Z ← (IY+d)b
Op Code
BIT
Operands
b, (lY+d)
1
1
1
1
1
1
0
1
FD
1
1
0
0
1
0
1
1
CB
1
1
0
d
0
1
b
Description
This instruction tests bit b in the memory location specified by the contents of register pair
IY combined with the two’s complement displacement d and sets the Z flag accordingly.
In the assembled object code, operand b is specified as follows.
UM008006-0714
Bit Tested
b
0
000
1
001
2
010
3
011
4
100
5
101
6
110
7
111
M Cycles
T States
4 MHz E.T.
5
20 (4, 4, 3, 5, 4)
5.00
Z80 Instruction Description