diff --git a/PDP10/ka10_stk.c b/PDP10/ka10_stk.c index cb42339..9891103 100644 --- a/PDP10/ka10_stk.c +++ b/PDP10/ka10_stk.c @@ -24,12 +24,14 @@ */ #include -#include "sim_video.h" -#include "display/display.h" #include "kx10_defs.h" #ifdef USE_DISPLAY #if NUM_DEVS_STK > 0 + +#include "sim_video.h" +#include "display/display.h" + #define STK_DEVNUM 070 /* CONI/O bits. */ diff --git a/PDP10/kx10_cr.c b/PDP10/kx10_cr.c index ef1bc18..06dee85 100644 --- a/PDP10/kx10_cr.c +++ b/PDP10/kx10_cr.c @@ -136,7 +136,7 @@ t_stat cr_devio(uint32 dev, uint64 *data) { case CONO: clr_interrupt(dev); - sim_debug(DEBUG_CONO, &cr_dev, "CR: CONO %012llo\n", *data); + sim_debug(DEBUG_CONO, &cr_dev, "CR: CONO %012llo PC=%06o\n", *data, PC); if (*data & CLR_READER) { uptr->STATUS = 0; if (!CARD_RDY(uptr)) @@ -156,7 +156,6 @@ t_stat cr_devio(uint32 dev, uint64 *data) { uptr->STATUS &= ~(CARD_IN_READ|RDY_READ|DATA_RDY); uptr->COL = 0; sim_activate(uptr, uptr->wait); - break; } if (CARD_RDY(uptr)) uptr->STATUS |= RDY_READ; diff --git a/PDP10/kx10_mt.c b/PDP10/kx10_mt.c index 0ce3ee8..3204994 100644 --- a/PDP10/kx10_mt.c +++ b/PDP10/kx10_mt.c @@ -240,6 +240,8 @@ t_stat mt_devio(uint32 dev, uint64 *data) { res |= ((uint64)wr_eor) << 21; if (dptr->flags & MTDF_TYPEB) res |= 7LL; /* Force DATA PIA to 7 on type B */ + if (cpu_unit[0].flags & UNIT_ITSPAGE) + res |= SMASK; *data = res; sim_debug(DEBUG_CONI, dptr, "MT CONI %03o status %06o %o %o PC=%06o\n", dev, (uint32)res, mt_sel_unit, mt_pia, PC);