Memory: LB_NonMemory only shows breakpoint when writing to rom

This commit is contained in:
zilmar 2012-12-29 07:32:15 +11:00
parent 746f1168d9
commit 33342a77c5
1 changed files with 6 additions and 5 deletions

View File

@ -1678,9 +1678,10 @@ int CMipsMemoryVM::LB_NonMemory ( DWORD PAddr, DWORD * Value, BOOL /*SignExtend*
* Value = 0; * Value = 0;
return true; return true;
} }
if (PAddr >= 0x10000000 && PAddr < 0x16000000)
{
g_Notify->BreakPoint(__FILE__,__LINE__); g_Notify->BreakPoint(__FILE__,__LINE__);
#ifdef tofix #ifdef tofix
if (PAddr >= 0x10000000 && PAddr < 0x16000000) {
if (WrittenToRom) { return FALSE; } if (WrittenToRom) { return FALSE; }
if ((PAddr & 2) == 0) { PAddr = (PAddr + 4) ^ 2; } if ((PAddr & 2) == 0) { PAddr = (PAddr + 4) ^ 2; }
if ((PAddr - 0x10000000) < RomFileSize) { if ((PAddr - 0x10000000) < RomFileSize) {
@ -1694,15 +1695,15 @@ int CMipsMemoryVM::LB_NonMemory ( DWORD PAddr, DWORD * Value, BOOL /*SignExtend*
*Value = 0; *Value = 0;
return FALSE; return FALSE;
} }
}
#endif #endif
}
// switch (PAddr & 0xFFF00000) { // switch (PAddr & 0xFFF00000) {
// default: // default:
* Value = 0; * Value = 0;
return FALSE; // return FALSE;
// break; // break;
// } // }
// return TRUE; return TRUE;
} }
int CMipsMemoryVM::LH_NonMemory ( DWORD PAddr, DWORD * Value, int/* SignExtend*/ ) int CMipsMemoryVM::LH_NonMemory ( DWORD PAddr, DWORD * Value, int/* SignExtend*/ )