DiskII: Fix for "DRIVES OFF forces the control flipflops to clear". (@sicklittlemonkey)

. fixes Zork0 (#926) and Shogun (#1315)
This commit is contained in:
tomcw 2024-07-28 16:38:37 +01:00
parent 95a4f44977
commit 91eec68fff

View File

@ -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;