mirror of
https://github.com/mattrberry/crab.git
synced 2025-01-29 20:35:13 +01:00
thumb fix setting reg in high reg branch exchange
This commit is contained in:
parent
0177822cfc
commit
7795000cac
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue