mirror of
https://github.com/mattrberry/crab.git
synced 2025-01-15 03:40:56 +01:00
thumb high reg bx ops only set flags on cmp
This commit is contained in:
parent
fa5746cc0b
commit
adeb05911b
1 changed files with 2 additions and 1 deletions
|
@ -9,8 +9,9 @@ module THUMB
|
||||||
rd += 8 if h1
|
rd += 8 if h1
|
||||||
rs += 8 if h2
|
rs += 8 if h2
|
||||||
|
|
||||||
|
# In this group only CMP (Op = 01) sets the CPSR condition codes.
|
||||||
case op
|
case op
|
||||||
when 0b00 then set_reg(rd, add(@r[rd], @r[rs], true))
|
when 0b00 then set_reg(rd, add(@r[rd], @r[rs], false))
|
||||||
when 0b01 then sub(@r[rd], @r[rs], true)
|
when 0b01 then sub(@r[rd], @r[rs], true)
|
||||||
when 0b10 then set_reg(rd, @r[rs])
|
when 0b10 then set_reg(rd, @r[rs])
|
||||||
when 0b11
|
when 0b11
|
||||||
|
|
Loading…
Reference in a new issue