diff options
| author | merry <git@mary.rs> | 2022-03-05 18:23:10 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-05 15:23:10 -0300 |
| commit | b97ff4da5eb67b68400fa1c187524f53407dbb71 (patch) | |
| tree | 5d4153a53720b9d768139469a39323500687609d /ARMeilleure/Instructions | |
| parent | 747081d2c79eba176cc64314acdbf5c580537e5e (diff) | |
A32: Fix ALU immediate instructions (#3179)
* Tests: Add A32 tests for immediate ADC/ADCS/RSC/RSCS/SBC/SBCS
* A32: Fix bug in ADC/ADCS/RSC/RSCS/SBC/SBCS
* CpuTestAluImm32: Add more opcodes
* Increment PTC version
Diffstat (limited to 'ARMeilleure/Instructions')
| -rw-r--r-- | ARMeilleure/Instructions/InstEmitAluHelper.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ARMeilleure/Instructions/InstEmitAluHelper.cs b/ARMeilleure/Instructions/InstEmitAluHelper.cs index 67d9e915..a487895b 100644 --- a/ARMeilleure/Instructions/InstEmitAluHelper.cs +++ b/ARMeilleure/Instructions/InstEmitAluHelper.cs @@ -197,7 +197,7 @@ namespace ARMeilleure.Instructions // ARM32. case IOpCode32AluImm op: { - if (ShouldSetFlags(context) && op.IsRotated) + if (ShouldSetFlags(context) && op.IsRotated && setCarry) { SetFlag(context, PState.CFlag, Const((uint)op.Immediate >> 31)); } |
