DSP: Experiment with cleaning up ARAM accessor

This commit is contained in:
booto 2019-01-25 23:59:04 -05:00
parent 57fbf1cd6e
commit 73c0a4ee81

View File

@ -586,15 +586,9 @@ u8 ReadARAM(u32 address)
{ {
if (s_ARAM.wii_mode) if (s_ARAM.wii_mode)
{ {
if (address & 0x10000000) return Memory::Read_U8(address & 0x1fffffff);
return s_ARAM.ptr[address & s_ARAM.mask];
else
return Memory::Read_U8(address & Memory::RAM_MASK);
} }
else
{
return s_ARAM.ptr[address & s_ARAM.mask]; return s_ARAM.ptr[address & s_ARAM.mask];
}
} }
void WriteARAM(u8 value, u32 address) void WriteARAM(u8 value, u32 address)