mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-07-11 01:28:41 +12:00
Fix PC in disassembly
This commit is contained in:
parent
415bf7b0a4
commit
c872cfb507
1 changed files with 2 additions and 1 deletions
|
@ -176,7 +176,6 @@ void DSPDebugger::updateDisasm() {
|
|||
const bool needExpansion = Teakra::Disassembler::NeedExpansion(instruction);
|
||||
|
||||
const u16 expansion = needExpansion ? readWord(addr + 2) : u16(0);
|
||||
addr += needExpansion ? sizeof(u32) : sizeof(u16);
|
||||
|
||||
std::string disassembly = Teakra::Disassembler::Do(instruction, expansion);
|
||||
disassembly = fmt::format("{:08X} | {}", addr, disassembly);
|
||||
|
@ -185,7 +184,9 @@ void DSPDebugger::updateDisasm() {
|
|||
if (addr == pc) {
|
||||
item->setBackground(Qt::darkGreen);
|
||||
}
|
||||
|
||||
disasmListWidget->addItem(item);
|
||||
addr += needExpansion ? sizeof(u32) : sizeof(u16);
|
||||
}
|
||||
|
||||
disasmListWidget->setCurrentRow(currentRow);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue