Class: Tataru::Instructions::KeyInstruction

Inherits:
ImmediateModeInstruction show all
Defined in:
lib/tataru/instructions/key_instruction.rb

Overview

sets a key

Instance Attribute Summary

Attributes inherited from Tataru::Instruction

#memory

Instance Method Summary collapse

Methods inherited from ImmediateModeInstruction

#initialize

Methods inherited from Tataru::Instruction

#execute, expects

Constructor Details

This class inherits a constructor from Tataru::Instructions::ImmediateModeInstruction

Instance Method Details

#runObject



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

def run
  memory.hash[:temp][:_key] = @param
end