AltairZ80: Properly set current Tarbell drive and drive not ready flag on reset
This commit is contained in:
parent
17356d9093
commit
e261a2fa28
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue