1
0
mirror of https://github.com/simh/simh.git synced 2026-01-26 12:02:14 +00:00

TAPE: Add tests and Coverity cleanups

This commit is contained in:
Mark Pizzolato
2019-03-19 10:24:28 -07:00
parent 3840765c63
commit f09e9c290a
4 changed files with 369 additions and 59 deletions

4
scp.c
View File

@@ -6680,8 +6680,10 @@ for (i = 0; i < start; i++) {
return SCPE_IERR;
}
for (i = start; (dptr = sim_devices[i]) != NULL; i++) {
if (sim_switches & SWMASK('P'))
if (sim_switches & SWMASK('P')) {
tmxr_add_debug (dptr); /* Add TMXR debug to MUX devices */
sim_tape_add_debug (dptr); /* Add TAPE debug to TAPE devices */
}
if (dptr->reset != NULL) {
reason = dptr->reset (dptr);
if (reason != SCPE_OK)