AltairZ80: Properly set current Tarbell drive and drive not ready flag on reset

This commit is contained in:
Patrick Linstruth 2019-12-10 21:21:30 -08:00 committed by Mark Pizzolato
parent 17356d9093
commit e261a2fa28

View file

@ -317,7 +317,7 @@ t_stat tarbell_reset(DEVICE *dptr)
}
}
/* Enable PROM */
pInfo->currentDrive = 0;
pInfo->promEnabled = TRUE;
pInfo->writeProtect = FALSE;
@ -339,9 +339,11 @@ t_stat tarbell_reset(DEVICE *dptr)
pInfo->FD1771[i].writeTrkActive = FALSE;
pInfo->FD1771[i].addrActive = FALSE;
pInfo->FD1771[i].headLoaded = FALSE;
pInfo->FD1771[i].driveNotReady = TRUE;
pInfo->FD1771[i].driveNotReady = ((pInfo->uptr[i] == NULL) || (pInfo->uptr[i]->fileref == NULL)) ? TRUE : FALSE;
}
sim_debug(STATUS_MSG, &tarbell_dev, TARBELL_SNAME ": reset controller." NLP);
return SCPE_OK;
}