Difference between revisions of "OR"

From GbdevWiki
Jump to: navigation, search
(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…')
(No difference)

Revision as of 08:56, 25 May 2012

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