diff options
| author | 2026-03-08 04:33:46 +1100 | |
|---|---|---|
| committer | 2026-03-08 04:33:46 +1100 | |
| commit | 6498190508d4297fd8a76d9f2695328320414937 (patch) | |
| tree | 89782bbb4ed0acc0361ac6724f564f59303075b5 | |
| parent | 2bda0d67a93cc3b30bb90acdd92d17126b47e3b1 (diff) | |
cpu/sharc/sharcdrc.cpp: Fixed Rn = Rx + CI - 1 ALU operation.
Neglected to git add the change after copy/pasting complementary
operation above.
| -rw-r--r-- | src/devices/cpu/sharc/sharcdrc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/cpu/sharc/sharcdrc.cpp b/src/devices/cpu/sharc/sharcdrc.cpp index 3bd565f3cc2..a857b74cb3b 100644 --- a/src/devices/cpu/sharc/sharcdrc.cpp +++ b/src/devices/cpu/sharc/sharcdrc.cpp @@ -4455,8 +4455,8 @@ void adsp21062_device::generate_compute(drcuml_block &block, compiler_state &com case 0x26: // Rn = Rx + CI - 1 UML_XOR(block, I0, ASTAT_AC, 1); - UML_ADD(block, REG(rn), REG(rx), ASTAT_AC); - update_az_av_an_ac_fixed(block, desc, false); + UML_SUB(block, REG(rn), REG(rx), I0); + update_az_av_an_ac_fixed(block, desc, true); return; case 0x2a: // Rn = Rx - 1 |
