Difference between revisions of "Z80 wait instructions"

From MSX Game Library

Line 8: Line 8:
 
| <tt>AND 0</tt>      ||  8 || 2 || ?
 
| <tt>AND 0</tt>      ||  8 || 2 || ?
 
|-
 
|-
| <tt>BIT 0, A</tt>    || 10 || 2 || ?
+
| <tt>BIT 0, A</tt>    || 10 || 2 || Opposite of the bit #0 is written into the Z flag. C is preserved, N is reset, H is set, and S and P/V are undefined.
 
|-
 
|-
| <tt>BIT 0, (HL)</tt> || 14 || 2 || ?
+
| <tt>BIT 0, (HL)</tt> || 14 || 2 || Opposite of the bit #0 is written into the Z flag. C is preserved, N is reset, H is set, and S and P/V are undefined.
 
|}
 
|}

Revision as of 15:09, 2 March 2024

Inst. Wait
CC
Size
(bytes)
Flag modification
NOP 5 1 None
OR 0 8 2  ?
AND 0 8 2  ?
BIT 0, A 10 2 Opposite of the bit #0 is written into the Z flag. C is preserved, N is reset, H is set, and S and P/V are undefined.
BIT 0, (HL) 14 2 Opposite of the bit #0 is written into the Z flag. C is preserved, N is reset, H is set, and S and P/V are undefined.