fixed last test

back in the green
This commit is contained in:
Torsten Ruger
2015-10-16 17:13:08 +03:00
parent a6712fc4f9
commit bd2bf612ac
8 changed files with 60 additions and 40 deletions

View File

@ -210,8 +210,11 @@ module Register
# write means we write the resulting address straight into the assembler stream
# object means the object of which we write the address
def write_ref_for object
if object.nil?
case object
when nil
pos = 0 - @load_at
when Fixnum
pos = object - @load_at
else
pos = object.position
end

View File

@ -50,6 +50,9 @@ module Register
@symbol
end
def self.convert(unused)
unused
end
end
# Here we define the mapping from virtual machine objects, to register machine registers