Disasm: do not allow to access previous instructions in non-interpreter mode

This commit is contained in:
Eladash 2020-10-31 13:29:50 +02:00 committed by Ivan
parent 5e8419af0d
commit c2c559f8d9
3 changed files with 8 additions and 3 deletions

View file

@ -1764,8 +1764,8 @@ void Emulator::Resume()
// Print and reset debug data collected
if (m_state == system_state::paused && g_cfg.core.ppu_debug)
{
PPUDisAsm dis_asm(CPUDisAsm_InterpreterMode);
dis_asm.offset = vm::g_base_addr;
PPUDisAsm dis_asm(CPUDisAsm_DumpMode);
dis_asm.offset = vm::g_sudo_addr;
std::string dump;