DRAM address range bounds checking was off by one byte.

This commit is contained in:
unknown 2015-06-18 19:51:30 -04:00
parent dcf2854309
commit fee77c1aae
1 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ void SP_DMA_READ (void)
addr = (*RSPInfo.SP_DRAM_ADDR_REG) & 0x00FFFFFF;
if (addr > 0x800000)
if (addr > 0x7FFFFF)
{
MessageBox(NULL,"SP DMA READ\nSP_DRAM_ADDR_REG not in RDRam space","Error",MB_OK);
return;
@ -115,7 +115,7 @@ void SP_DMA_WRITE (void)
addr = (*RSPInfo.SP_DRAM_ADDR_REG) & 0x00FFFFFF;
if (addr > 0x800000)
if (addr > 0x7FFFFF)
{
MessageBox(NULL,"SP DMA WRITE\nSP_DRAM_ADDR_REG not in RDRam space","Error",MB_OK);
return;