Index: pcsx2/x86/ix86-32/iCore-32.cpp =================================================================== --- pcsx2/x86/ix86-32/iCore-32.cpp (revision 1972) +++ pcsx2/x86/ix86-32/iCore-32.cpp (working copy) @@ -118,6 +118,7 @@ int _getFreeX86reg(int mode) { int tempi = -1; + int noframe = 1; // mode & MODE_NOFRAME u32 bestcount = 0x10000; int maxreg = (mode&MODE_8BITREG)?4:iREGCNT_GPR; @@ -126,7 +127,7 @@ int reg = (g_x86checknext+i)%iREGCNT_GPR; if( reg == 0 || reg == ESP ) continue; if( reg >= maxreg ) continue; - if( (mode&MODE_NOFRAME) && reg==EBP ) continue; + if( noframe && reg==EBP ) continue; if (x86regs[reg].inuse == 0) { g_x86checknext = (reg+1)%iREGCNT_GPR; @@ -136,7 +137,7 @@ for (int i=1; i