Class: Amaterasu::GameBoy::Cpu::Instructions::Stop
- Defined in:
- lib/amaterasu/game_boy/cpu/instructions/stop.rb
Overview
Holds the logic for STOP instruction.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(cpu:) ⇒ Stop
constructor
A new instance of Stop.
Methods inherited from Base
Constructor Details
#initialize(cpu:) ⇒ Stop
Returns a new instance of Stop.
9 10 11 12 13 14 |
# File 'lib/amaterasu/game_boy/cpu/instructions/stop.rb', line 9 def initialize(cpu:) super @mnemonic = 'STOP' @logic = -> { @cpu.fetch_next_byte } end |