OR

From GbdevWiki
Revision as of 09:18, 25 May 2012 by Beannaich (Talk | contribs)

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

This is an article about the GB-Z80 CPU.

Opcodes:

Arithmetic and logical: ADD - ADD (16-bit) including LD HL,SP+nn - ADC - AND - CP - CPL - DAA - DEC - DEC and INC (16-bit) - INC - SBC - SUB - OR - XOR
Conditional: CALL - JP - JR - RET
Load: LD (8-bit) - LD (16-bit)
Extended Set: BIT - RES - RL - RLC - RR - RRC - SET - SLA - SRA - SRL - SWAP

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