From 383093c5fffde7b29649ca4f452e892299b337c6 Mon Sep 17 00:00:00 2001 From: StapleButter Date: Mon, 6 Mar 2017 18:13:57 +0100 Subject: make NEG update flags correctly (oops). also misc graphics notes added. --- ARMInterpreter_ALU.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ARMInterpreter_ALU.cpp') diff --git a/ARMInterpreter_ALU.cpp b/ARMInterpreter_ALU.cpp index 88b69e7..d6c5abd 100644 --- a/ARMInterpreter_ALU.cpp +++ b/ARMInterpreter_ALU.cpp @@ -1301,8 +1301,10 @@ void T_NEG_REG(ARM* cpu) u32 b = cpu->R[(cpu->CurInstr >> 3) & 0x7]; u32 res = -b; cpu->R[cpu->CurInstr & 0x7] = res; - cpu->SetNZ(res & 0x80000000, - !res); + cpu->SetNZCV(res & 0x80000000, + !res, + CARRY_SUB(0, b), + OVERFLOW_SUB(0, b, res)); } void T_CMP_REG(ARM* cpu) -- cgit v1.2.3