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:
@ -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
|
||||
|
@ -12,7 +12,7 @@ class HelloTest < MiniTest::Test
|
||||
end
|
||||
|
||||
def test_string_put
|
||||
@input = "return 'Hello'.putstring"
|
||||
@input = "return 'Hello World!\n'.putstring"
|
||||
check
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user