From 8e35b4150e537e12c919b6b8b8d98f5c465b1811 Mon Sep 17 00:00:00 2001 From: bushing Date: Sat, 28 Feb 2009 13:44:05 -0800 Subject: [PATCH] fix exception handler again, as per marcan --- exception.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exception.c b/exception.c index c99af18..a357287 100644 --- a/exception.c +++ b/exception.c @@ -74,8 +74,8 @@ void exc_handler(u32 type, u32 spsr, u32 *regs) switch (type) { case 1: // undefined instruction - gecko_printf("Undefined instruction @ %08x: %08x\n", regs[14]-4, read32(regs[14]-4)); - return; + gecko_printf("Undefined instruction @ %08x:\n%08x %08x *%08x* %08x %08x\n", + pc, read32(pc-8), read32(pc-4), read32(pc), read32(pc), read32(pc+8)); break; case 3: // INSTR ABORT case 4: // DATA ABORT