Changed UNLOAD to be an illegal operation if issued on an RM device and made UNLOAD on RP devices execute immediately (as suggested by Bob Supnik)

This commit is contained in:
Mark Pizzolato 2012-12-08 15:22:27 -08:00
parent cb659d6c83
commit 72c65ad7a4

View file

@ -1025,6 +1025,13 @@ switch (fnc) { /* case on function */
return SCPE_OK;
case FNC_UNLOAD: /* unload */
if (drv_tab[dtype].ctrl == RM_CTRL) { /* RM? */
rp_set_er (ER1_ILF, drv); /* not supported */
break;
}
rp_detach (uptr); /* detach unit */
return SCPE_OK;
case FNC_RECAL: /* recalibrate */
dc = 0; /* seek to 0 */
case FNC_SEEK: /* seek */
@ -1138,10 +1145,6 @@ if (!uptr->io_complete) { /* Top End (I/O Initiation) Processing */
rp_update_ds (DS_ATA, drv);
break;
case FNC_UNLOAD: /* unload */
rp_detach (uptr); /* detach unit */
break;
case FNC_RECAL: /* recalibrate */
case FNC_SEARCH: /* search */
case FNC_SEEK: /* seek */