diff --git a/Source/Project64-core/N64System/Mips/MemoryVirtualMem.cpp b/Source/Project64-core/N64System/Mips/MemoryVirtualMem.cpp index 1eb93b28e..a54d2529b 100644 --- a/Source/Project64-core/N64System/Mips/MemoryVirtualMem.cpp +++ b/Source/Project64-core/N64System/Mips/MemoryVirtualMem.cpp @@ -468,7 +468,7 @@ bool CMipsMemoryVM::SW_VAddr(uint32_t VAddr, uint32_t Value) { if (VAddr >= 0xA3F00000 && VAddr < 0xC0000000) { - if (VAddr < 0xA4000000 || VAddr >= 0xA4002000) + if ((VAddr & 0xFFFFE000ul) != 0xA4000000ul) // !(A4000000 <= addr < A4002000) { VAddr &= 0x1FFFFFFF; SW_NonMemory(VAddr, Value);