Class: Amaterasu::GameBoy::Cpu::Instructions::Nop

Inherits:
Base
  • Object
show all
Defined in:
lib/amaterasu/game_boy/cpu/instructions/nop.rb,
sig/akane/game_boy/cpu/instructions/nop.rbs

Overview

Defines the mnemonic, bytes and logic for the NOP instruction.

Instance Attribute Summary

Attributes inherited from Base

#mnemonic

Instance Method Summary collapse

Methods inherited from Base

#execute, #format_operand

Constructor Details

#initialize(cpu:) ⇒ Nop

Returns a new instance of Nop.

Parameters:



9
10
11
12
13
14
# File 'lib/amaterasu/game_boy/cpu/instructions/nop.rb', line 9

def initialize(cpu:)
  super

  @mnemonic = 'NOP'
  @logic = -> {}
end