From 40613cbd447cae98903d8e511a930cb9c6381f45 Mon Sep 17 00:00:00 2001 From: phil Date: Wed, 28 Mar 2018 11:29:36 -0400 Subject: [PATCH] KA10: Account for MIT I/O Multiplexor in 340 Display CONI response Thanks to Lars for figuring it out! --- PDP10/ka10_dpy.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/PDP10/ka10_dpy.c b/PDP10/ka10_dpy.c index 6f4b766..67c5f5c 100644 --- a/PDP10/ka10_dpy.c +++ b/PDP10/ka10_dpy.c @@ -227,8 +227,15 @@ t_stat dpy_devio(uint32 dev, uint64 *data) { switch (dev & 3) { case CONI: *data = (uint64)(uptr->STAT_REG & CONI_MASK); - sim_debug(DEBUG_CONI, &dpy_dev, "DPY %03o CONI PC=%o %06o\n", - dev, PC, (uint32)*data); + /* + * MIT AI only, See Hardware Memo 1 + * https://github.com/larsbrinkhoff/its-archives/blob/master/ailab/ITS_Hardware_Memo_1.pdf + * Set sign bit if device assigned to this CPU (KA or PDP-6) + * (Thanks to Lars for figuring this out!) + */ + *data |= SMASK; /* always assigned to us */ + sim_debug(DEBUG_CONI, &dpy_dev, "DPY %03o CONI PC=%06o %012llo\n", + dev, PC, *data); break; case CONO: