From 3214c7ff293abe71d0c1245d583b68c0e23e72fd Mon Sep 17 00:00:00 2001 From: Sour Date: Fri, 8 Mar 2019 21:42:27 -0500 Subject: [PATCH] WRAM: Fixed missing wram mirrors at $3F and $BF --- Core/MemoryManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/MemoryManager.cpp b/Core/MemoryManager.cpp index e83f4fb..35445f6 100644 --- a/Core/MemoryManager.cpp +++ b/Core/MemoryManager.cpp @@ -50,12 +50,12 @@ void MemoryManager::Initialize(shared_ptr console) RegisterHandler(((i | 0x80) << 16) | 0x4000, ((i | 0x80) << 16) | 0x4FFF, _registerHandlerA.get()); } - for(int i = 0; i < 0x3F; i++) { + for(int i = 0; i <= 0x3F; i++) { RegisterHandler((i << 16) | 0x0000, (i << 16) | 0x0FFF, _workRamHandlers[0].get()); RegisterHandler((i << 16) | 0x1000, (i << 16) | 0x1FFF, _workRamHandlers[1].get()); } - for(int i = 0x80; i < 0xBF; i++) { + for(int i = 0x80; i <= 0xBF; i++) { RegisterHandler((i << 16) | 0x0000, (i << 16) | 0x0FFF, _workRamHandlers[0].get()); RegisterHandler((i << 16) | 0x1000, (i << 16) | 0x1FFF, _workRamHandlers[1].get()); }