thumb actually check the condition...

This commit is contained in:
Matthew Berry 2020-09-27 22:41:54 -07:00
parent 0ec726cfbe
commit 7820e69eb6

View file

@ -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