rubyx/lib/vm/kernel.rb

16 lines
355 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 mov r7 , 0 + 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*
2014-05-05 08:35:40 +02:00
Machine.instance.puts string
2014-05-02 07:02:25 +02:00
end
end
end