Debugger: GB - Fixed relative address calculation
This commit is contained in:
parent
fb3bf73ba6
commit
bcf36df5f2
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ int32_t Gameboy::GetRelativeAddress(AddressInfo& absAddress)
|
|||
}
|
||||
|
||||
for(int32_t i = 0; i < 0x10000; i += 0x100) {
|
||||
AddressInfo blockAddr = GetAbsoluteAddress(absAddress.Address);
|
||||
AddressInfo blockAddr = GetAbsoluteAddress(i);
|
||||
if(blockAddr.Type == absAddress.Type && (blockAddr.Address & ~0xFF) == (absAddress.Address & ~0xFF)) {
|
||||
return i | (absAddress.Address & 0xFF);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue