Debugger: Fix disasm at start of kernel RAM.

We ended up with an unaligned start address for our window.
This commit is contained in:
Unknown W. Brackets committed 2023-04-12 01:14:30 -07:00
1 parent 9cebfc31b3
commit 6998b188f3
1 file changed
+2 -2
+2 -2
View File
@@ -364,7 +364,7 @@ u32 DisassemblyManager::getNthPreviousAddress(u32 address, int n)
analyze(address-127,128);
}
return address-n*4;
return (address - n * 4) & ~3;
}
u32 DisassemblyManager::getNthNextAddress(u32 address, int n)
@@ -396,7 +396,7 @@ u32 DisassemblyManager::getNthNextAddress(u32 address, int n)
analyze(address);
}
return address+n*4;
return (address + n * 4) & ~3;
}
DisassemblyManager::~DisassemblyManager() {