Debugger: GB - Fixed assembler not recognizing register labels
This commit is contained in:
parent
9b1f6ef3f9
commit
e3323c6722
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue