Difference between revisions of "AND"
From GbdevWiki
(Created page with 'A logical AND operation is performed between the byte specified by the operand and the byte contained in the Accumulator; the result is stored in the Accumulator. == Instruction…') |
(No difference)
|
Revision as of 08:52, 25 May 2012
A logical AND operation is performed between the byte specified by the operand and the byte contained in the Accumulator; the result is stored in the Accumulator.
Instructions
AND B - $A0 - 1 Machine Cycle AND C - $A1 - 1 Machine Cycle AND D - $A2 - 1 Machine Cycle AND E - $A3 - 1 Machine Cycle AND H - $A4 - 1 Machine Cycle AND L - $A5 - 1 Machine Cycle AND (HL) - $A6 - 2 Machine Cycles AND A - $A7 - 1 Machine Cycle AND $NN - $E6 - 2 Machine Cycles
Flags
Z: 1 if result is zero; 0 otherwise N: 0 H: 1 C: 0