16 lines
355 B
Ruby
16 lines
355 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 mov r7 , 0 + swi 0
|
|
Machine.instance.main_exit
|
|
end
|
|
def self.puts string
|
|
# should unwrap from string to char*
|
|
Machine.instance.puts string
|
|
end
|
|
end
|
|
end |