mirror of
https://github.com/mattrberry/crab.git
synced 2025-01-29 20:35:13 +01:00
thumb long branch offset is signed
This commit is contained in:
parent
f230348f75
commit
e4d98a3970
1 changed files with 2 additions and 1 deletions
|
@ -7,7 +7,8 @@ module THUMB
|
||||||
@r[15], @r[14] = @r[14], @r[15] - 1
|
@r[15], @r[14] = @r[14], @r[15] - 1
|
||||||
clear_pipeline
|
clear_pipeline
|
||||||
else
|
else
|
||||||
@r[14] = (offset << 12) + @r[15]
|
offset = (offset << 5).to_i16! >> 5 # todo make this just bit math
|
||||||
|
@r[14] = @r[15] &+ (offset << 12)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue