thumb fix setting reg in high reg branch exchange

This commit is contained in:
Matthew Berry 2020-10-03 14:55:25 -07:00
parent 0177822cfc
commit 7795000cac

View file

@ -10,8 +10,8 @@ module THUMB
rs += 8 if h2
case op
when 0b00 then add(@r[rd], @r[rs], true)
when 0b01 then sub(@r[rd], @r[rs], true)
when 0b00 then @r[rd] = add(@r[rd], @r[rs], true)
when 0b01 then @r[rd] = sub(@r[rd], @r[rs], true)
when 0b10 then @r[rd] = @r[rs]
when 0b11
if bit?(@r[rs], 0)