mirror of
https://github.com/mattrberry/crab.git
synced 2024-11-16 19:49:30 +01:00
fix multiple accumulate when destination is accumulate reg
This commit is contained in:
parent
24a186da3c
commit
6e71ee30b8
1 changed files with 1 additions and 2 deletions
|
@ -7,8 +7,7 @@ module ARM
|
|||
rs = bits(instr, 8..11)
|
||||
rm = bits(instr, 0..3)
|
||||
|
||||
set_reg(rd, @r[rm] &* @r[rs])
|
||||
set_reg(rd, @r[rd] &+ @r[rn]) if accumulate
|
||||
set_reg(rd, @r[rm] &* @r[rs] &+ (accumulate ? @r[rn] : 0))
|
||||
set_neg_and_zero_flags(@r[rd]) if set_conditions
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue