mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04: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:
parent
9cebfc31b3
commit
6998b188f3
1 changed files with 2 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue