From 5d4a422e61a8aaa404180499cc289334a99ea511 Mon Sep 17 00:00:00 2001 From: Simon Gellis Date: Fri, 15 Aug 2025 00:07:04 -0400 Subject: [PATCH] Fix handler address for FIV exception --- core/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/cpu.c b/core/cpu.c index ce856de..4bcbc49 100644 --- a/core/cpu.c +++ b/core/cpu.c @@ -495,7 +495,7 @@ static int cpuException(VB *sim) { sim->cpu.eipc = sim->cpu.pc; sim->cpu.psw.ep = 1; sim->cpu.nextPC = 0xFFFF0000 | - ((cause & 0xFFF0) == 0xFF60 ? 0xFF60 : cause & 0xFFF0); + ((cause & 0xFFF0) == 0xFF70 ? 0xFF60 : cause & 0xFFF0); } /* All exceptions */