From 0550b9372a062117d50e5450a1313d7252d6c478 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Mon, 9 Jun 2014 00:16:03 -0700 Subject: [PATCH] Skip nop padding between functions. Fixes graphical artifacts in Final Fantasy Tactics, recognizing memset and memcpy. --- Core/MIPS/MIPSAnalyst.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Core/MIPS/MIPSAnalyst.cpp b/Core/MIPS/MIPSAnalyst.cpp index ab907167dd..23e70518d6 100644 --- a/Core/MIPS/MIPSAnalyst.cpp +++ b/Core/MIPS/MIPSAnalyst.cpp @@ -836,6 +836,10 @@ skip: if ((op & 0xFFFF8000) == 0x27BD0000) { decreasedSp = false; } + if (op == MIPS_MAKE_NOP() && currentFunction.start == addr) { + // Skip nop padding at the beginning of functions (alignment?) + currentFunction.start += 4; + } if (looking) { if (addr >= furthestBranch) {