rubyx/lib/vm/kernel.rb
Torsten Ruger 04e4dc872e check
2014-05-03 18:51:47 +03:00

16 lines
334 B
Ruby

module Vm
module Kernel
def self.start
#TODO extract args into array of strings
Machine.instance.main_entry
end
def self.exit
# Machine.exit swi 0
Machine.instance.main_exit
end
def self.puts string
# should unwrap from string to char*
Machine.instance.puts
end
end
end