XOR

From GbdevWiki
Revision as of 07:48, 25 May 2012 by Beannaich (Talk | contribs) (Created page with 'The logical exclusive-OR operation is performed between the byte specified by the operand and the byte contained in the Accumulator; the result is stored in the Accumulator. == …')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The logical exclusive-OR 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

XOR B    - $A8 - 1 Machine Cycle
XOR C    - $A9 - 1 Machine Cycle
XOR D    - $AA - 1 Machine Cycle
XOR E    - $AB - 1 Machine Cycle
XOR H    - $AC - 1 Machine Cycle
XOR L    - $AD - 1 Machine Cycle
XOR (HL) - $AE - 2 Machine Cycles
XOR A    - $AF - 1 Machine Cycle
XOR $NN  - $EE - 2 Machine Cycles

Flags

Z: 1 if result is zero; 0 otherwise
N: 0
H: 0
C: 0