From da30c0b0f0e966177ac9dde3a4935d4ccdc6fe55 Mon Sep 17 00:00:00 2001 From: TuxSH Date: Tue, 13 Jun 2017 02:53:53 +0200 Subject: [PATCH] Fix dfsr being displayed instead of fpexc --- source/exceptions.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/exceptions.c b/source/exceptions.c index 414a697..202dccb 100644 --- a/source/exceptions.c +++ b/source/exceptions.c @@ -111,8 +111,10 @@ void detectAndProcessExceptionDumps(void) { posY = drawFormattedString(true, 10, posY + SPACING_Y, COLOR_WHITE, "%-7s%08X", registerNames[i], regs[i]); - if(i != 16 || dumpHeader->processor != 9) + if(i != 16) posY = drawFormattedString(true, 10 + 22 * SPACING_X, posY, COLOR_WHITE, "%-7s%08X", registerNames[i + 1], regs[i + 1]); + else if(dumpHeader->processor == 11) + posY = drawFormattedString(true, 10 + 22 * SPACING_X, posY, COLOR_WHITE, "%-7s%08X", registerNames[i + 1], regs[20]); } posY += SPACING_Y;