fixing assembly (wip)

main entry is the main problem, still polishing
This commit is contained in:
Torsten Ruger
2015-05-26 20:17:03 +03:00
parent 8413f6b470
commit 96c59ac144
4 changed files with 14 additions and 29 deletions

View File

@ -20,15 +20,9 @@ module Register
def link
@space.set_position(0)
at = @space.mem_length # first jump instruction
# then all functions
at = @space.mem_length
@space.objects.each do | objekt|
next unless objekt.is_a? Parfait::Method
objekt.info.set_position(at)
at += objekt.info.mem_length
end
#and then all data object
@objects.each do | objekt|
next if objekt.is_a? Parfait::Space
objekt.set_position at
at += objekt.mem_length
end