create return address as own class to hold return addresses

to distinguish from integer, which does not need adjusting
This commit is contained in:
Torsten Ruger
2018-05-30 23:49:01 +03:00
parent e86ca5ae9d
commit e39e96f646
9 changed files with 60 additions and 11 deletions

View File

@ -66,8 +66,7 @@ module Risc
# if none was given
def self.label( source , name , position = nil , nekst = nil)
unless position
position = Parfait.object_space.get_integer
Risc.machine.add_constant(position)
position = Risc.machine.get_address
end
Label.new( source , name , position, nekst )
end