mirror of
https://github.com/AppleWin/AppleWin.git
synced 2026-04-20 00:17:16 +00:00
Debugger: revert behaviour from 8fce7a8 so that Ctrl+F2 doesn't immediately stop the drive spinning, but F2 still does (#460)
This commit is contained in:
+11
-3
@@ -2033,13 +2033,21 @@ void RelayEvent (UINT message, WPARAM wparam, LPARAM lparam) {
|
||||
|
||||
//===========================================================================
|
||||
|
||||
// CtrlReset() vs ResetMachineState():
|
||||
// . CPU:
|
||||
// Ctrl+Reset : sp=-3 / CpuReset()
|
||||
// Power cycle: sp=0x1ff / CpuInitialize()
|
||||
// . Disk][:
|
||||
// Ctrl+Reset : if motor-on, then motor-off but continue to spin for 1s
|
||||
// Power cycle: motor-off & immediately stop spinning
|
||||
|
||||
// todo: consolidate CtrlReset() and ResetMachineState()
|
||||
void ResetMachineState ()
|
||||
{
|
||||
DiskReset(true); // Set floppymotoron=0
|
||||
DiskReset(true);
|
||||
g_bFullSpeed = 0; // Might've hit reset in middle of InternalCpuExecute() - so beep may get (partially) muted
|
||||
|
||||
MemReset();
|
||||
MemReset(); // calls CpuInitialize()
|
||||
PravetsReset();
|
||||
DiskBoot();
|
||||
VideoResetState();
|
||||
@@ -2069,7 +2077,7 @@ void CtrlReset()
|
||||
MemResetPaging();
|
||||
|
||||
PravetsReset();
|
||||
DiskReset(g_nAppMode == MODE_DEBUG); // For MODE_DEBUG act like a power-cycle (GH#460)
|
||||
DiskReset();
|
||||
KeybReset();
|
||||
if (!IS_APPLE2) // TODO: Why not for A][ & A][+ too?
|
||||
VideoResetState(); // Switch Alternate char set off
|
||||
|
||||
Reference in New Issue
Block a user