remove extra instruction and use next instead
was messing with binary writing as the assumption of 1 word writes is baked in
This commit is contained in:
@ -83,10 +83,12 @@ module Arm
|
||||
def test_too_big_add
|
||||
code = @machine.add :r1 , :r1, 0x222
|
||||
begin # add 0x02 (first instruction) and then 0x220 shifted
|
||||
assert_code code , :add , [0x02,0x1c,0x91,0xe2, 0x22,0x10,0x91,0xe2] #e2 91 1e 22
|
||||
assert_code code , :add , [0x02,0x1c,0x91,0xe2] #e2 91 1e 02
|
||||
rescue Risc::LinkException
|
||||
retry
|
||||
end
|
||||
# added extra instruction to add "extra"
|
||||
assert_code code.next , :add , [0x22,0x10,0x91,0xe2] #e2 91 10 22
|
||||
end
|
||||
|
||||
def label pos = 0x22 + 8
|
||||
|
Reference in New Issue
Block a user