while assembles, now for some nice assmbler reading

This commit is contained in:
Torsten Ruger
2014-05-14 12:54:23 +03:00
parent a5b4f3d9ad
commit d8d536aa2c
4 changed files with 21 additions and 15 deletions

View File

@@ -34,7 +34,7 @@ module Arm
if( arg.is_a? Fixnum ) #HACK to not have to change the code just now
arg = Vm::IntegerConstant.new( arg )
end
if arg.is_a? Vm::Block
if arg.is_a?(Vm::Block) or arg.is_a?(Vm::Function)
diff = arg.position - self.position - 8
arg = Vm::IntegerConstant.new(diff)
end