Download Print this page

ZiLOG Z80380 User Manual page 63

Advertisement

Z
ILOG
BIT b,dst
← NOT dst(b)
Operation:
Z
The specified bit b within the destination operand is tested, and the Zero flag is set to 1 if
the specified bit is 0, otherwise the Zero flag is cleared to 0. The contents of the destination
are unaffected. The bit to be tested is specified by a 3-bit field in the instruction; this field
contains the binary encoding for the bit number to be tested. The bit number b must be
between 0 and 7.
S:
Unaffected
Flags:
Z:
Set if the specified bit is zero; cleared otherwise
H:
Set
V:
Unaffected
N:
Cleared
C:
Unaffected
Addressing
Mode
Syntax
R:
BIT b,R
BIT b,(HL)
IR:
X:
BIT b,(XY+d)
Field Encodings: r:
per convention
y: 0 for IX, 1 for IY
DC-8297-03
dst = R, IR, X
Instruction Format
11001011 01bbb-r-
11001011 01bbb110
11y11101 11001011 ——d— 01bbb110
Z380
U
'
M
SER
S
ANUAL
BIT
BIT TEST
Execute
Time
Note
2
2+r
4+r
I
5-29

Advertisement

loading
Need help?

Need help?

Do you have a question about the Z80380 and is the answer not in the manual?