mirror of
https://github.com/mattrberry/crab.git
synced 2025-01-16 03:41:18 +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
|
||||
clear_pipeline
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue