fix debug

This commit is contained in:
Torsten Ruger
2015-06-09 11:38:03 +02:00
parent 20b28077a1
commit c9ec6e2f39
3 changed files with 10 additions and 9 deletions

View File

@ -29,14 +29,14 @@ module Elf
end
end
end
space.main.blocks.each do |b|
add_symbol "main@#{b.name}" , b.position
end
add_symbol "#register@#{space.init.name}" , space.init.position
assembler.objects.values.each do |slot|
# @object_machine.space.main.blocks.each do |b|
# add_symbol "main@#{b.name}" , b.position
# end
# add_symbol "#register@#{@object_machine.space.init.name}" , @object_machine.space.init.position
@object_machine.objects.each do |slot|
label = "#{slot.class.name}::#{slot.position.to_s(16)}"
label += "=#{slot}" if slot.is_a?(Symbol) or slot.is_a?(String)
label += "=#{slot.string}" if slot.is_a?(Parfait::Word)
label += "=#{slot.name}" if slot.is_a?(Parfait::BinaryCode)
add_symbol label , slot.position
end
end