mirror of
https://github.com/mattrberry/crab.git
synced 2025-01-29 20:35:13 +01:00
thumb actually check the condition...
This commit is contained in:
parent
0ec726cfbe
commit
7820e69eb6
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ module THUMB
|
|||
def thumb_conditional_branch(instr : Word) : Nil
|
||||
cond = bits(instr, 8..11)
|
||||
offset = bits(instr, 0..7).to_i8!
|
||||
if cond
|
||||
if check_cond cond
|
||||
@r[15] &+= (offset * 2)
|
||||
clear_pipeline
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue