OR

From GbdevWiki
Revision as of 07:56, 25 May 2012 by Beannaich (Talk | contribs) (Created page with 'A logical 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…')

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

A logical 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

OR B    - $B0 - 1 Machine Cycle
OR C    - $B1 - 1 Machine Cycle
OR D    - $B2 - 1 Machine Cycle
OR E    - $B3 - 1 Machine Cycle
OR H    - $B4 - 1 Machine Cycle
OR L    - $B5 - 1 Machine Cycle
OR (HL) - $B6 - 2 Machine Cycles
OR A    - $B7 - 1 Machine Cycle
OR $NN  - $F6 - 2 Machine Cycles

Flags

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