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
|
2014-05-05 23:12:04 +02:00
|
|
|
# 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
|