NSC: Reset NSC on power-cycle. (Fixes #751)

This commit is contained in:
tomcw 2020-06-08 21:11:12 +01:00
parent 80eb33012f
commit 6d85c1b6bd
2 changed files with 4 additions and 2 deletions

View File

@ -2297,7 +2297,7 @@ void ResetMachineState ()
HD_Reset();
g_bFullSpeed = 0; // Might've hit reset in middle of InternalCpuExecute() - so beep may get (partially) muted
MemReset(); // calls CpuInitialize()
MemReset(); // calls CpuInitialize(), CNoSlotClock.Reset()
PravetsReset();
if (g_CardMgr.QuerySlot(SLOT6) == CT_Disk2)
dynamic_cast<Disk2InterfaceCard&>(g_CardMgr.GetRef(SLOT6)).Boot();

View File

@ -1801,7 +1801,7 @@ inline DWORD getRandomTime()
//===========================================================================
// Called by:
// . MemInitialize()
// . MemInitialize() eg. on AppleWin start & restart (eg. h/w config changes)
// . ResetMachineState() eg. Power-cycle ('Apple-Go' button)
// . Snapshot_LoadState_v2()
void MemReset()
@ -1956,6 +1956,8 @@ void MemReset()
//Sets Caps Lock = false (Pravets 8A/C only)
z80_reset(); // NB. Also called above in CpuInitialize()
g_NoSlotClock.Reset(); // NB. Power-cycle, but not RESET signal
}
//===========================================================================