Class: Amaterasu::GameBoy::Cpu::Instructions::Or
- Defined in:
- lib/amaterasu/game_boy/cpu/instructions/or.rb
Overview
Handles the logic related to all possible OR instructions
-
OR A, r8
-
OR A, [HL]
-
OR A, n8
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(cpu:, source:) ⇒ Or
constructor
A new instance of Or.
Methods inherited from Base
Constructor Details
#initialize(cpu:, source:) ⇒ Or
Returns a new instance of Or.
15 16 17 18 19 20 |
# File 'lib/amaterasu/game_boy/cpu/instructions/or.rb', line 15 def initialize(cpu:, source:) super(cpu:) @mnemonic = "OR A, #{source}" @logic = build_logic(source) end |