From e3323c6722044cad582d3ac066ba9fc7f868d77c Mon Sep 17 00:00:00 2001 From: Sour Date: Sat, 6 Jun 2020 23:36:16 -0400 Subject: [PATCH] Debugger: GB - Fixed assembler not recognizing register labels --- Core/LabelManager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Core/LabelManager.cpp b/Core/LabelManager.cpp index 823f723..3f10cbb 100644 --- a/Core/LabelManager.cpp +++ b/Core/LabelManager.cpp @@ -170,6 +170,9 @@ int32_t LabelManager::GetLabelRelativeAddress(string &label, CpuType cpuType) uint64_t key = result->second; SnesMemoryType type = GetKeyMemoryType(key); AddressInfo addr { (int32_t)(key & 0xFFFFFFFF), type }; + if(type <= DebugUtilities::GetLastCpuMemoryType()) { + return addr.Address; + } return _debugger->GetRelativeAddress(addr, cpuType).Address; } //Label doesn't exist