fix label loading in arm

was still loading the integer address
instead of the return address's address
Hello World working
This commit is contained in:
Torsten Ruger
2018-06-19 17:35:00 +03:00
parent 956c2ebe54
commit db459fcd3d
4 changed files with 6 additions and 3 deletions

View File

@ -90,7 +90,9 @@ module Arm
end
def label( pos = 0x22 + 8)
label = Risc::Label.new("some" , "Label" , FakeAddress.new(pos))
addr = FakeAddress.new(pos)
Risc::Position.new(addr).set(pos)
label = Risc::Label.new("some" , "Label" , addr)
Risc::Position.create(label).set(pos)
#Risc::Position.set(l , pos , @binary)
label