Class: Tataru::Instructions::ValueUpdateInstruction
- Inherits:
-
ImmediateModeInstruction
- Object
- Tataru::Instruction
- ImmediateModeInstruction
- Tataru::Instructions::ValueUpdateInstruction
- Defined in:
- lib/tataru/instructions/value_update_instruction.rb
Overview
sets temp result
Instance Attribute Summary
Attributes inherited from Tataru::Instruction
Instance Method Summary collapse
Methods inherited from ImmediateModeInstruction
Methods inherited from Tataru::Instruction
Constructor Details
This class inherits a constructor from Tataru::Instructions::ImmediateModeInstruction
Instance Method Details
#run ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/tataru/instructions/value_update_instruction.rb', line 7 def run unless memory.hash[:update_action].key? @param raise "No value set for '#{@param}'" end memory.hash[:temp] = { result: memory.hash[:update_action][@param] } end |