Class: Tataru::Instructions::ImmediateModeInstruction

Inherits:
Tataru::Instruction show all
Defined in:
lib/tataru/instructions/immediate_mode_instruction.rb

Overview

instruction that takes a parameter

Instance Attribute Summary

Attributes inherited from Tataru::Instruction

#memory

Instance Method Summary collapse

Methods inherited from Tataru::Instruction

#execute, expects, #run

Constructor Details

#initialize(param) ⇒ ImmediateModeInstruction

Returns a new instance of ImmediateModeInstruction.



7
8
9
# File 'lib/tataru/instructions/immediate_mode_instruction.rb', line 7

def initialize(param)
  @param = param
end