Wrong offset in VramLockedWrite

This commit is contained in:
Flyinghead 2019-05-24 17:44:54 +02:00
parent 61a867e1ad
commit fa10b9ed2f
1 changed files with 1 additions and 1 deletions

View File

@ -303,7 +303,7 @@ bool VramLockedWrite(u8* address)
if (_nvmem_4gb_space() && !mmu_enabled())
{
offset = address - virt_ram_base;
if (offset >= 0x04000000 && offset < 0x050000000)
if (offset >= 0x04000000 && offset < 0x05000000)
return VramLockedWriteOffset((offset - 0x04000000) & (VRAM_SIZE - 1));
// 32MB wrap not set yet
//if (offset >= 0x06000000 && offset < 0x070000000)