Sha256: 8f7c9a73156d05e7aff09fface5f04dffa8004f043f5c92578708dcc2ab4584c

Contents?: true

Size: 177 Bytes

Versions: 1

Compression:

Stored size: 177 Bytes

Contents

module Whitespace::ISA
  class Store < Instruction
    def execute
      value = vm.vstack.pop
      address = vm.vstack.pop

      vm.memory[address] = value
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
whitespace-ruby-1.0.0 lib/whitespace/instructions/heap_access/store.rb