Improved detection.

For Resident Evil: Code Veronica.
This commit is contained in:
Jean-Philip Desjardins 2021-12-15 11:22:51 -05:00
parent e0858565d5
commit 32dafbb660

View file

@ -237,7 +237,9 @@ bool CBasicBlock::IsIdleLoopBlock() const
{
OP_BEQ = 0x04,
OP_BNE = 0x05,
OP_SLTIU = 0x0B,
OP_XORI = 0x0E,
OP_LUI = 0x0F,
OP_LW = 0x23,
};
@ -299,8 +301,12 @@ bool CBasicBlock::IsIdleLoopBlock() const
return false;
}
break;
case OP_LUI:
//This always sets a value to a register, doesn't rely on previous state
break;
case OP_XORI:
case OP_LW:
case OP_SLTIU:
if(rt != compareReg) return false;
break;
default: