From a9873ad620c9c0bdaa7e59e08edd2a38ab510efa Mon Sep 17 00:00:00 2001 From: Tony Wasserka Date: Sun, 31 Mar 2024 15:51:28 +0200 Subject: [PATCH] Interpreter: Add support for VS/VC condition codes --- source/interpreter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/interpreter.cpp b/source/interpreter.cpp index 123dc90..19165fb 100644 --- a/source/interpreter.cpp +++ b/source/interpreter.cpp @@ -291,6 +291,10 @@ static bool EvalCond(CPUContext& ctx, uint32_t cond) { return (ctx.cpu.cpsr.neg == 1); } else if (cond == 0x5) { // Positive or Zero return (ctx.cpu.cpsr.neg == 0); + } else if (cond == 0x6) { // Overflow + return (ctx.cpu.cpsr.overflow == 1); + } else if (cond == 0x7) { // No overflow + return (ctx.cpu.cpsr.overflow == 0); } else if (cond == 0x8) { // Greater (unsigned) return (ctx.cpu.cpsr.carry == 1 && ctx.cpu.cpsr.zero == 0); } else if (cond == 0x9) { // Less Equal (unsigned)