fixes outstanding misc, All green

Well. it's been a while, positioning is fixed (again)
apart from the upcoming BranchListener
This commit is contained in:
Torsten Ruger
2018-06-10 13:19:55 +03:00
parent e1683938ed
commit 5ec235d049
7 changed files with 11 additions and 11 deletions

View File

@ -89,7 +89,7 @@ module Arm
assert_code code.next , :add , [0x22,0x10,0x91,0xe2] #e2 91 10 22
end
def label( pos = 0x12 + 8)
def label( pos = 0x22 + 8)
label = Risc::Label.new("some" , "Label" , FakeAddress.new(pos))
Risc::Position.new(label , pos)
#Risc::Position.set(l , pos , @binary)
@ -98,7 +98,7 @@ module Arm
def test_move_object
code = @machine.add( :r1 , label)
Risc::Position.new(code,12)
Risc::Position.new(code,0)
assert_code code , :add , [0x22,0x10,0x9f,0xe2] #e2 9f 10 22
end