PPU debugger: Add instruction disasm for PPU calling history

This commit is contained in:
Eladash 2021-07-18 10:51:01 +03:00 committed by Megamouse
parent 6f6503ee32
commit 904ec44a8c

View File

@ -494,10 +494,13 @@ void debugger_frame::keyPressEvent(QKeyEvent* event)
std::string ret;
PPUDisAsm dis_asm(cpu_disasm_mode::normal, vm::g_sudo_addr);
u32 i = 0;
for (auto it = copy.rbegin(); it != copy.rend(); it++, i++)
{
fmt::append(ret, "\n(%u) 0x%08x", i, *it);
dis_asm.disasm(*it);
fmt::append(ret, "\n(%u) 0x%08x: %s", i, *it, dis_asm.last_opcode);
}
if (ret.empty())