Merge pull request #500 from cxd4/eeeeeeeeeeeeeeeee

DRAM address range bounds checking was off by one byte.
This commit is contained in:
zilmar 2015-06-19 10:48:36 +10:00
commit 6f582ac6e0
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;