From c5d75d2de91c623d6b625f7713b762d1d0bd30f0 Mon Sep 17 00:00:00 2001 From: TuxSH Date: Thu, 24 Nov 2016 07:12:28 +0100 Subject: [PATCH] Update exceptions.c --- source/exceptions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/exceptions.c b/source/exceptions.c index 09c05d0..8c2182c 100644 --- a/source/exceptions.c +++ b/source/exceptions.c @@ -127,7 +127,7 @@ void detectAndProcessExceptionDumps(void) if(instr == 0xE12FFF7E) drawString(specialExceptions[0], true, 10 + 32 * SPACING_X, posY, COLOR_WHITE); else if(instr == 0xEF00003C) drawString(specialExceptions[1], true, 10 + 32 * SPACING_X, posY, COLOR_WHITE); } - else if((regs[16] & 0x20) == 0 && dumpHeader->codeDumpSize >= 2) + else if((regs[16] & 0x20) == 1 && dumpHeader->codeDumpSize >= 2) { u16 instr = *(vu16 *)(stackDump - 2); if(instr == 0xDF3C) drawString(specialExceptions[1], true, 10 + 32 * SPACING_X, posY, COLOR_WHITE); @@ -201,4 +201,4 @@ void detectAndProcessExceptionDumps(void) waitInput(false); mcuPowerOff(); -} \ No newline at end of file +}