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