rubyx/lib/vm/kernel.rb
2014-05-05 09:35:40 +03:00

16 lines
341 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 string
end
end
end