lynx: fix an emulator crash that occurred on certain instances of emulated game crash

This commit is contained in:
goyuken 2014-10-13 21:42:53 +00:00
parent 06dd71f849
commit e74580a14a
2 changed files with 2 additions and 1 deletions
lynx
output/dll

View File

@ -880,7 +880,8 @@ void CMikie::Poke(uint32 addr,uint8 data)
C6502_REGS regs;
mSystem.GetRegs(regs);
TRACE_MIKIE1("Runtime Alert - System Halted\nCMikie::Poke(SYSCTL1) - Lynx power down occured at PC=$%04x.\nResetting system.",regs.PC);
mSystem.Reset();
// can't reset in the middle of a frame, screws the timekeeping; and it doesn't make a difference anyway
// mSystem.Reset();
mSystem.gSystemHalt=TRUE;
}
mSystem.CartAddressStrobe((data&0x01)?TRUE:FALSE);

Binary file not shown.