Fixed the ram_search to only display possible ram addresses from 0x0000 to 0x07FF and 0x6000 to 0x7FFF

This commit is contained in:
deign85 2010-06-10 20:16:57 +00:00
parent 55daec3e57
commit 32261b0640
1 changed files with 2 additions and 1 deletions

View File

@ -50,10 +50,11 @@ bool IsHardwareAddressValid(HWAddressType address)
if (!GameInfo)
return false;
if (address >= 0x0000 && address <= 0xffff)
if ((address >= 0x0000 && address <= 0x07ff) || (address >= 0x6000 && address <= 0x7FFF))
return true;
else
return false;
}
#define INVALID_HARDWARE_ADDRESS ((HWAddressType) -1)