mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-23 00:30:17 +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:
parent
95a4f44977
commit
91eec68fff
@ -494,6 +494,10 @@ void __stdcall Disk2InterfaceCard::ControlMotor(WORD, WORD address, BYTE, BYTE,
|
|||||||
BOOL newState = address & 1;
|
BOOL newState = address & 1;
|
||||||
bool stateChanged = (newState != m_floppyMotorOn);
|
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)
|
if (stateChanged)
|
||||||
{
|
{
|
||||||
m_floppyMotorOn = newState;
|
m_floppyMotorOn = newState;
|
||||||
|
Loading…
Reference in New Issue
Block a user