figuring relocations

This commit is contained in:
Torsten Ruger
2014-04-20 02:28:57 +03:00
parent 4e075e3a81
commit 6226521abb
3 changed files with 6 additions and 9 deletions

View File

@@ -8,7 +8,6 @@ module Asm
def initialize
@objects = []
@label_objects = []
@label_callbacks = []
@relocations = []
end
attr_reader :relocations, :objects
@@ -21,10 +20,6 @@ module Asm
@relocations << Asm::Relocation.new(*args)
end
def register_label_callback(label, io_pos, &block)
@label_callbacks << [label, io_pos, block]
end
def assemble(io)
@objects.each do |obj|
obj.assemble io, self