Class: Whitespace::ISA::Return
- Inherits:
-
Instruction
- Object
- Instruction
- Whitespace::ISA::Return
- Defined in:
- lib/whitespace/instructions/flow_control/return.rb
Instance Attribute Summary
Attributes inherited from Instruction
Instance Method Summary collapse
Methods inherited from Instruction
Constructor Details
This class inherits a constructor from Whitespace::ISA::Instruction
Instance Method Details
#execute ⇒ Object
3 4 5 |
# File 'lib/whitespace/instructions/flow_control/return.rb', line 3 def execute vm.pc.change_to vm.cstack.pop end |