Skip to content

Commit a095973

Browse files
shatteredpkoning2
authored andcommitted
PDP11: Changes for Terak 8510/a simulator:
Allow standard TTY devices (TTI and TTO) to be disabled -- Terak video board replaces them.
1 parent 3b3d0fd commit a095973

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

PDP11/pdp11_stddev.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ DEVICE tti_dev = {
169169
1, 10, 31, 1, 8, 8,
170170
NULL, NULL, &tti_reset,
171171
NULL, NULL, NULL,
172-
&tti_dib, DEV_DEBUG | DEV_UBUS | DEV_QBUS, 0, tti_debug
172+
&tti_dib, DEV_DEBUG | DEV_UBUS | DEV_QBUS | DEV_DISABLE, 0, tti_debug
173173
};
174174

175175
/* TTO data structures
@@ -221,7 +221,7 @@ DEVICE tto_dev = {
221221
1, 10, 31, 1, 8, 8,
222222
NULL, NULL, &tto_reset,
223223
NULL, NULL, NULL,
224-
&tto_dib, DEV_UBUS | DEV_QBUS
224+
&tto_dib, DEV_UBUS | DEV_QBUS | DEV_DISABLE
225225
};
226226

227227
/* CLK data structures
@@ -391,7 +391,7 @@ tti_unit.buf = 0;
391391
tti_csr = 0;
392392
CLR_INT (TTI);
393393
sim_activate (&tti_unit, tmr_poll);
394-
return SCPE_OK;
394+
return auto_config (dptr->name, (dptr->flags & DEV_DIS) ? 0 : 1);
395395
}
396396

397397
/* Terminal output address routines */
@@ -467,7 +467,7 @@ tto_unit.buf = 0;
467467
tto_csr = CSR_DONE;
468468
CLR_INT (TTO);
469469
sim_cancel (&tto_unit); /* deactivate unit */
470-
return SCPE_OK;
470+
return auto_config (dptr->name, (dptr->flags & DEV_DIS) ? 0 : 1);
471471
}
472472

473473
t_stat tty_set_mode (UNIT *uptr, int32 val, CONST char *cptr, void *desc)

0 commit comments

Comments
 (0)