diff --git a/PDP10/ka10_dd.c b/PDP10/ka10_dd.c index 9c3019f4..0acea756 100644 --- a/PDP10/ka10_dd.c +++ b/PDP10/ka10_dd.c @@ -103,7 +103,7 @@ uint32 vds_analog[VDS_OUTPUTS]; /* Analog channel. */ static t_stat dd_set_windows (UNIT *uptr, int32 val, CONST char *cptr, void *desc) ; static t_stat dd_show_windows (FILE *st, UNIT *uptr, int32 val, CONST void *desc); -static void dd_chargen (char c, int column); +static void dd_chargen (uint16 c, int column); static void dd_graphics (uint8 data, int column); static t_stat dd_devio(uint32 dev, uint64 *data); static t_stat vds_devio(uint32 dev, uint64 *data); @@ -150,11 +150,6 @@ DEVICE vds_dev = { NULL, NULL, &vds_help, NULL, NULL, &vds_description }; -static void unimplemented (const char *text) -{ - fprintf (stderr, "\r\n[UNIMPLEMENTED: %s]\r\n", text); -} - static void dd_hang (const char *msg) { @@ -271,7 +266,7 @@ dd_pixel (int x, int y, uint8 pixel) } static void -dd_chargen (char c, int column) +dd_chargen (uint16 c, int column) { int i, j; uint8 pixels; @@ -541,7 +536,7 @@ dd_decode (uint64 insn) static t_stat dd_svc (UNIT *uptr) { - if (uptr->MA >= (int32)MEMSIZE) { + if ((t_addr)uptr->MA >= MEMSIZE) { uptr->STATUS |= DD_NXM; dd_halt ("NXM"); } else { diff --git a/PDP10/kx10_tym.c b/PDP10/kx10_tym.c index c98dec6b..c2c6cd64 100644 --- a/PDP10/kx10_tym.c +++ b/PDP10/kx10_tym.c @@ -546,7 +546,7 @@ static void tym_output(void) while (M[tym_base + OBP] != M[tym_base + OHP]) { sim_debug(DEBUG_DETAIL, &tym_dev, "Output from host: %llu %012llo\n", M[tym_base + OBP], word(OBP, ORNG)); - type = (int)(word(OBP, ORNG) >> 28); + type = (word(OBP, ORNG) >> 28) & 0377; port = (word(OBP, ORNG) >> 20) & 0377; subtype = (word(OBP, ORNG) >> 12) & 0377; data = (word(OBP, ORNG) >> 4) & 0377; @@ -566,6 +566,7 @@ static uint64 dump = ~0ULL; static uint64 irng = ~0ULL; static uint64 isiz = ~0ULL; static uint64 ihp = ~0ULL; + static uint64 ibp = ~0ULL; static uint64 orng = ~0ULL; static uint64 osiz = ~0ULL;