rubyx/lib/vm/kernel.rb

16 lines
334 B
Ruby
Raw Normal View History

2014-05-02 07:02:25 +02:00
module Vm
module Kernel
2014-05-03 14:13:44 +02:00
def self.start
#TODO extract args into array of strings
2014-05-03 17:51:47 +02:00
Machine.instance.main_entry
2014-05-03 14:13:44 +02:00
end
def self.exit
# Machine.exit swi 0
2014-05-03 17:51:47 +02:00
Machine.instance.main_exit
2014-05-03 14:13:44 +02:00
end
2014-05-03 17:51:47 +02:00
def self.puts string
# should unwrap from string to char*
Machine.instance.puts
2014-05-02 07:02:25 +02:00
end
end
end