Fixed bug where the drive could incorrectly write to the disk just after a reset.

This commit is contained in:
Stephen White 2018-08-04 17:15:11 +10:00
parent bae47c0157
commit 4adbe3f560
1 changed files with 2 additions and 1 deletions

View File

@ -445,7 +445,8 @@ bool Drive::Update()
}
else if (diskImage && motor)
{
bool writing = (m_pVIA->GetFCR() & m6522::FCR_CB2_OUTPUT_MODE0) == 0;
unsigned char FCR = m_pVIA->GetFCR();
bool writing = ((FCR & m6522::FCR_CB2_OUTPUT_MODE0) == 0) && ((FCR & m6522::FCR_CB2_IO) != 0);
if (SO)
{