Sha256: c33b4be66cb25a17ebed821bbe6779b031cd06530a2447c624777b6723250d84
Contents?: true
Size: 275 Bytes
Versions: 1
Compression:
Stored size: 275 Bytes
Contents
module Whitespace::ISA class Readn < Instruction attr_reader :console def initialize(vm, console) super(vm) @console = console end def execute n = console.getn address = vm.vstack.pop vm.memory[address] = n end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
whitespace-ruby-1.0.0 | lib/whitespace/instructions/io/readn.rb |