mirror of
https://github.com/mattrberry/crab.git
synced 2025-02-05 08:45:50 +01:00
thumb fix conditional branch crash on wrong int type
This commit is contained in:
parent
9b1f73e741
commit
b52599ae2d
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
module THUMB
|
||||
def thumb_conditional_branch(instr : Word) : Nil
|
||||
cond = bits(instr, 8..11)
|
||||
offset = bits(instr, 0..7).to_i8!
|
||||
offset = bits(instr, 0..7).to_i8!.to_i32
|
||||
if check_cond cond
|
||||
@r[15] &+= (offset * 2)
|
||||
clear_pipeline
|
||||
|
|
Loading…
Add table
Reference in a new issue