mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
Debugger: Fix disasm at start of kernel RAM.
We ended up with an unaligned start address for our window.
This commit is contained in:
1 parent
9cebfc31b3
commit
6998b188f3
1 file changed
+2
-2
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user