diff --git a/NOVA/nova_mta.c b/NOVA/nova_mta.c index b5285110..e90a5c28 100644 --- a/NOVA/nova_mta.c +++ b/NOVA/nova_mta.c @@ -1,6 +1,6 @@ /* nova_mta.c: NOVA magnetic tape simulator - Copyright (c) 1993-2017, Robert M. Supnik + Copyright (c) 1993-2020, Robert M. Supnik Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), @@ -25,6 +25,7 @@ mta magnetic tape + 23-Mar-20 RMS Unload should call sim_tape_detach (Mark Pizzolato) 13-Mar-17 RMS Annotated fall through in switch 04-Jul-07 BKR fixed boot code to properly boot self-boot tapes; boot routine now uses standard DG APL boot code; @@ -296,7 +297,7 @@ switch (pulse) { /* decode IR<8:9> */ ~(STA_BOT | STA_EOF | STA_EOT | STA_RDY)) | STA_REW); sim_activate (uptr, mta_rwait); /* start IO */ if (c == CU_UNLOAD) - detach_unit (uptr); + sim_tape_detach (uptr); } else { mta_sta = 0; /* clear errors */ diff --git a/PDP10/pdp10_tu.c b/PDP10/pdp10_tu.c index 32201484..13460386 100644 --- a/PDP10/pdp10_tu.c +++ b/PDP10/pdp10_tu.c @@ -1,6 +1,6 @@ /* pdp10_tu.c - PDP-10 RH11/TM03/TU45 magnetic tape simulator - Copyright (c) 1993-2018, Robert M Supnik + Copyright (c) 1993-2020, Robert M Supnik Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), @@ -25,6 +25,7 @@ tu RH11/TM03/TU45 magtape + 23-Mar-20 RMS Unload should call sim_tape_detach (Mark Pizzolato) 12-Jan-18 RMS Fixed missing () in logical test (Mark Pizzolato) 29-Dec-17 RMS Read tape mark must set Massbus EXC (TRE) 28-Mar-17 RMS Documented switch fall through case (COVERITY) @@ -697,7 +698,7 @@ switch (fnc) { /* case on function */ set_tuer (ER_UNS); break; } - detach_unit (uptr); + sim_tape_detach (uptr); uptr->USTAT = FS_REW; sim_activate (uptr, tu_time); tucs1 = tucs1 & ~CS1_GO; diff --git a/PDP11/pdp11_tm.c b/PDP11/pdp11_tm.c index a0d85ad5..6e6dee2d 100644 --- a/PDP11/pdp11_tm.c +++ b/PDP11/pdp11_tm.c @@ -1,6 +1,6 @@ /* pdp11_tm.c: PDP-11 magnetic tape simulator - Copyright (c) 1993-2013, Robert M Supnik + Copyright (c) 1993-2020, Robert M Supnik Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), @@ -25,6 +25,7 @@ tm TM11/TU10 magtape + 23-Mar-20 RMS Unload should call sim_tape_detach (Mark Pizzolato) 23-Oct-13 RMS Revised for new boot setup routine 16-Feb-06 RMS Added tape capacity checking 31-Oct-05 RMS Fixed address width for large files @@ -372,7 +373,7 @@ uptr->USTAT = uptr->USTAT & (STA_WLK | STA_ONL); /* clear status */ tm_sta = 0; /* clear errors */ if (f == MTC_UNLOAD) { /* unload? */ uptr->USTAT = (uptr->USTAT | STA_REW) & ~STA_ONL; - detach_unit (uptr); /* set offline */ + sim_tape_detach (uptr); /* set offline */ } else if (f == MTC_REWIND) /* rewind */ uptr->USTAT = uptr->USTAT | STA_REW; /* rewinding */ diff --git a/PDP11/pdp11_tu.c b/PDP11/pdp11_tu.c index 58b924ad..64080787 100644 --- a/PDP11/pdp11_tu.c +++ b/PDP11/pdp11_tu.c @@ -1,6 +1,6 @@ /* pdp11_tu.c - PDP-11 TM02/TU16 TM03/TU45/TU77 Massbus magnetic tape controller - Copyright (c) 1993-2017, Robert M Supnik + Copyright (c) 1993-2020, Robert M Supnik Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), @@ -25,6 +25,7 @@ tu TM02/TM03 magtape + 23-Mar-20 RMS Unload should call sim_tape_detach (Mark Pizzolato) 28-Dec-17 RMS Read tape mark must set Massbus EXC 13-Mar-17 RMS Annotated fall through in switch 23-Oct-13 RMS Revised for new boot setup routine @@ -508,7 +509,7 @@ switch (fnc) { /* case on function */ tu_set_er (ER_UNS); break; } - detach_unit (uptr); + sim_tape_detach (uptr); uptr->USTAT = FS_REW; sim_activate (uptr, tu_time); tucs1 = tucs1 & ~CS1_GO; diff --git a/PDP8/pdp8_mt.c b/PDP8/pdp8_mt.c index f42fb83e..6d1d2f7a 100644 --- a/PDP8/pdp8_mt.c +++ b/PDP8/pdp8_mt.c @@ -1,6 +1,6 @@ /* pdp8_mt.c: PDP-8 magnetic tape simulator - Copyright (c) 1993-2011, Robert M Supnik + Copyright (c) 1993-2020, Robert M Supnik Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), @@ -25,6 +25,7 @@ mt TM8E/TU10 magtape + 23-Mar-20 RMS Unload should call sim_tape_detach (Mark Pizzolato) 16-Feb-06 RMS Added tape capacity checking 16-Aug-05 RMS Fixed C++ declaration and cast problems 18-Mar-05 RMS Added attached test to detach routine @@ -273,7 +274,7 @@ switch (IR & 07) { /* decode IR<9:11> */ } uptr->USTAT = uptr->USTAT & STA_WLK; /* clear status */ if (f == FN_UNLOAD) { /* unload? */ - detach_unit (uptr); /* set offline */ + sim_tape_detach (uptr); /* set offline */ uptr->USTAT = STA_REW | STA_REM; /* rewinding, off */ mt_set_done (); /* set done */ } diff --git a/sigma/sigma_mt.c b/sigma/sigma_mt.c index 5dfa33c1..dc626ef7 100644 --- a/sigma/sigma_mt.c +++ b/sigma/sigma_mt.c @@ -1,6 +1,6 @@ /* sigma_mt.c: Sigma 732X 9-track magnetic tape - Copyright (c) 2007-2017, Robert M. Supnik + Copyright (c) 2007-2020, Robert M. Supnik Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), @@ -25,6 +25,7 @@ mt 7320 and 7322/7323 magnetic tape + 23-Mar-20 RMS Unload should call sim_tape_detach (Mark Pizzolato) 13-Mar-17 RMS Annotated fall through in switch Magnetic tapes are represented as a series of variable records @@ -366,7 +367,7 @@ switch (cmd) { /* case on command */ break; case MCM_RWU: /* rewind unload */ - r = detach_unit (uptr); + r = sim_tape_detach (uptr); break; case MCM_REW: /* rewind */