mirror of
https://github.com/AppleWin/AppleWin.git
synced 2026-04-20 00:17:16 +00:00
DiskII: Fix for "DRIVES OFF forces the control flipflops to clear". (@sicklittlemonkey)
. fixes Zork0 (#926) and Shogun (#1315)
This commit is contained in:
@@ -494,6 +494,10 @@ void __stdcall Disk2InterfaceCard::ControlMotor(WORD, WORD address, BYTE, BYTE,
|
||||
BOOL newState = address & 1;
|
||||
bool stateChanged = (newState != m_floppyMotorOn);
|
||||
|
||||
// "2. [...] (DRIVES OFF forces the control flipflops to clear.)" (UTAIIe page 9-12)
|
||||
if (newState == FALSE)
|
||||
m_magnetStates = 0; // GH#926, GH#1315
|
||||
|
||||
if (stateChanged)
|
||||
{
|
||||
m_floppyMotorOn = newState;
|
||||
|
||||
Reference in New Issue
Block a user