1
0
mirror of https://github.com/rcornwell/sims.git synced 2026-01-13 15:27:04 +00:00

KA10: Misc bug fixes.

This commit is contained in:
Richard Cornwell 2019-08-01 22:53:44 -04:00
parent 53026c66c3
commit 896fcd07f4
3 changed files with 7 additions and 4 deletions

View File

@ -24,12 +24,14 @@
*/
#include <time.h>
#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. */

View File

@ -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;

View File

@ -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);