DRAM address range bounds checking was off by one byte.
This commit is contained in:
parent
dcf2854309
commit
fee77c1aae
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue