all repos — mgba @ 3210d5f272b26561ecfde2b08ee3238ecab6d62b

mGBA Game Boy Advance Emulator

ARM: Fix regression setting C flag in SBC (fixes #1827)
Vicki Pfau vi@endrift.com
Sun, 26 Jul 2020 23:18:15 -0700
commit

3210d5f272b26561ecfde2b08ee3238ecab6d62b

parent

89f9a0b8b105ba0a9f1f9dc9bf65bfb7f630aa6c

1 files changed, 0 insertions(+), 1 deletions(-)

jump to
M src/arm/isa-thumb.csrc/arm/isa-thumb.c

@@ -26,7 +26,6 @@ cpu->cpsr.c = ARM_BORROW_FROM(M, N, D); \

cpu->cpsr.v = ARM_V_SUBTRACTION(M, N, D); #define THUMB_SUBTRACTION_CARRY_S(M, N, D, C) \ - cpu->cpsr.flags = 0; \ cpu->cpsr.n = ARM_SIGN(D); \ cpu->cpsr.z = !(D); \ cpu->cpsr.c = ARM_BORROW_FROM_CARRY(M, N, D, C); \