static void write_mem_dummy(u32 data)
{
- if (!(psxRegs.CP0.n.Status & (1 << 16)))
+ if (!(psxRegs.CP0.n.SR & (1 << 16)))
memprintf("unmapped w %08x, %08x @%08x %u\n",
address, data, psxRegs.pc, psxRegs.cycle);
}
void new_dyna_pcsx_mem_shutdown(void)
{
- psxUnmap(mem_readtab, 0x200000 * 4, MAP_TAG_LUTS);
+ psxUnmap(mem_readtab, 0x200000 * sizeof(mem_readtab[0]), MAP_TAG_LUTS);
mem_writetab = mem_readtab = NULL;
}