Start work on a debug view

This commit is contained in:
SimoZ64
2025-07-28 22:46:04 +02:00
parent 86c30f36e2
commit bf330959e8
9 changed files with 88 additions and 26 deletions

View File

@@ -21,8 +21,12 @@ void Interpreter::CheckCompareInterrupt() {
}
}
Disassembler::DisassemblyResult Interpreter::Disassemble(const u32 address, const u32 instruction) const {
return Disassembler::instance().Disassemble(address, instruction);
Disassembler::DisassemblyResult Interpreter::Disassemble(const u32 address) {
u32 paddr;
if (!regs.cop0.MapVAddr(Cop0::LOAD, address, paddr)) {
return {};
}
return Disassembler::GetInstance().Disassemble(address, mem.Read<u32>(regs, paddr));
}
int Interpreter::Step() {