class Tataru::Instructions::ReturnInstruction
pops the callstack and goes back
Public Instance Methods
run()
click to toggle source
# File lib/tataru/instructions/return_instruction.rb, line 7 def run if memory.call_stack.count.zero? return memory.error = 'At bottom of stack' end memory.program_counter = memory.call_stack.pop end