1
0
mirror of https://github.com/simh/simh.git synced 2026-01-27 12:32:24 +00:00

KA10: Update DD and TYM drivers to remove compile warning.

This commit is contained in:
Richard Cornwell
2025-09-10 13:37:59 -04:00
committed by Mark Pizzolato
parent 7619e27394
commit 1673c85fc8
2 changed files with 5 additions and 9 deletions

View File

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

View File

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