mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-22 09:30:15 +00:00
NSC: Reset NSC on power-cycle. (Fixes #751)
This commit is contained in:
parent
80eb33012f
commit
6d85c1b6bd
@ -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();
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user