Support expanding RAM to 8MB (dev console)

This commit is contained in:
Connor McLaughlin 2021-05-02 20:46:48 +10:00
commit e382df0d41
21 changed files with 144 additions and 76 deletions

View file

@ -1140,7 +1140,7 @@ static T DoMemoryRead(PhysicalMemoryAddress address)
if (address < Bus::RAM_MIRROR_END)
{
std::memcpy(&result, &Bus::g_ram[address & Bus::RAM_MASK], sizeof(result));
std::memcpy(&result, &Bus::g_ram[address & Bus::g_ram_mask], sizeof(result));
return result;
}