at least its in shape to start debugging again (that must count as half full)

This commit is contained in:
Torsten Ruger
2014-05-05 22:21:11 +03:00
parent 69b04d930f
commit 7d20b5e2df
15 changed files with 154 additions and 160 deletions

View File

@@ -29,14 +29,14 @@ module Arm
end
end
end
def word_load value , reg
e = Vm::Block.new("load_#{value}")
e.add_code( MoveInstruction.new( :left => reg , :right => value ) )
end
def function_call call
raise "Not FunctionCall #{call.inspect}" unless call.is_a? Vm::FunctionCall
bl( :function => call.function )
bl( :left => call.function )
end
def main_entry
@@ -47,7 +47,7 @@ module Arm
end
def syscall num
mov( :left => 7 , :right => num )
swi( {} )
swi( :left => 0 )
end
end
end