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