BIT b,(IY + d)

Test bit b of indexed addressed memory location (IY + d).
Function: Z <- _(IY+d)b
 
Format:
 

 
Description: The specified bit of the memory location addressed by the contents of the IY register plus the given offset value is tested and the Z flag is set according to the result. b may be any one of:
0
000
1
001
2
010
3
011
4
100
5
101
6
110
7
111

 
Data Flow:
 
Timing:
 
Addressing Mode:
 
Byte Codes:
 
Flags:
 
Example:

OBJECT CODE
Before:
 
After: