Class: Whitespace::ISA::Return

Inherits:
Instruction show all
Defined in:
lib/whitespace/instructions/flow_control/return.rb

Instance Attribute Summary

Attributes inherited from Instruction

#vm

Instance Method Summary collapse

Methods inherited from Instruction

#initialize

Constructor Details

This class inherits a constructor from Whitespace::ISA::Instruction

Instance Method Details

#executeObject



3
4
5
# File 'lib/whitespace/instructions/flow_control/return.rb', line 3

def execute
  vm.pc.change_to vm.cstack.pop
end