Class: Tataru::Instructions::EndInstruction

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

Overview

ends the program

Instance Attribute Summary

Attributes inherited from Tataru::Instruction

#memory

Instance Method Summary collapse

Methods inherited from Tataru::Instruction

#execute, expects

Instance Method Details

#runObject



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

def run
  memory.end = true
end