mirror of https://github.com/PCSX2/pcsx2.git
pcsx2:interpreter: always false condition
Both fields are 10 bits but the ~ operation apply on the 32 bits. Therefore msb bits were always '1' and the condition always false. Code is only used on the interpreter but it could explain some hangs
This commit is contained in:
parent
bfe1236d98
commit
0422854384
|
@ -509,7 +509,7 @@ void MTC0()
|
||||||
}
|
}
|
||||||
|
|
||||||
int CPCOND0() {
|
int CPCOND0() {
|
||||||
return ((dmacRegs.stat.CIS | ~dmacRegs.pcr.CPC) == 0x3ff);
|
return (((dmacRegs.stat.CIS | ~dmacRegs.pcr.CPC) & 0x3FF) == 0x3ff);
|
||||||
}
|
}
|
||||||
|
|
||||||
//#define CPCOND0 1
|
//#define CPCOND0 1
|
||||||
|
|
Loading…
Reference in New Issue