static u32 fetchNoCache(u32 pc)
{
u32 *code = (u32 *)PSXM(pc);
- return ((code == NULL) ? 0 : SWAP32(*code));
+ return ((code == INVALID_PTR) ? 0 : SWAP32(*code));
}
/*
if (((entry->tag ^ pc) & 0xfffffff0) != 0 || pc < entry->tag)
{
u32 *code = (u32 *)PSXM(pc & ~0x0f);
- if (!code)
+ if (code == INVALID_PTR)
return 0;
entry->tag = pc;
}
void psxDelayTest(int reg, u32 bpc) {
- u32 tmp = fetch(psxRegs.pc);
+ u32 tmp = fetch(bpc);
branch = 1;
switch (psxTestLoadDelay(reg, tmp)) {