Skip nop padding between functions.

Fixes graphical artifacts in Final Fantasy Tactics, recognizing memset and
memcpy.
This commit is contained in:
Unknown W. Brackets 2014-06-09 00:16:03 -07:00
parent f801123849
commit 0550b9372a

View File

@ -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) {