1
0
mirror of https://github.com/open-simh/simh.git synced 2026-03-27 02:25:05 +00:00

Imlac: Improve debug output.

This commit is contained in:
Lars Brinkhoff
2025-06-05 14:27:48 +02:00
committed by Paul Koning
parent c1904b50ce
commit e7a151e1f1

View File

@@ -322,7 +322,7 @@ dp_inc_vector (uint16 byte)
uint16 dx, dy;
if (byte == 0200) {
sim_debug (DBG, &dp_dev, "P");
sim_debug (DBG, &dp_dev, "P\n");
} else {
sim_debug (DBG, &dp_dev, "%s", byte & 0100 ? "B" : "D");
if (byte & 00040)
@@ -330,7 +330,7 @@ dp_inc_vector (uint16 byte)
sim_debug (DBG, &dp_dev, "%o", (byte >> 3) & 3);
if (byte & 00004)
sim_debug (DBG, &dp_dev, "M");
sim_debug (DBG, &dp_dev, "%o", byte & 3);
sim_debug (DBG, &dp_dev, "%o\n", byte & 3);
}
dx = (byte >> 3) & 3;
@@ -377,6 +377,8 @@ dp_inc_escape (uint16 byte)
YMSB++;
if (byte & 1)
YLSB = 0;
sim_debug (DBG, &dp_dev, "\n");
}
static void
@@ -397,7 +399,6 @@ dp_deim (uint16 insn)
MODE = 1;
sim_debug (DBG, &dp_dev, "E,");
dp_inc (insn & 0377);
sim_debug (DBG, &dp_dev, "\n");
}
static void
@@ -434,12 +435,12 @@ dp_insn (uint16 insn)
dp_opr (insn);
break;
case 1: /* DLXA */
sim_debug (DBG, &dp_dev, "DLXA\n");
sim_debug (DBG, &dp_dev, "DLXA %04o\n", insn & 01777);
XMSB = (insn >> 4) & 0077;
XLSB = (insn << 1) & 0036;
break;
case 2: /* DLYA */
sim_debug (DBG, &dp_dev, "DLYA\n");
sim_debug (DBG, &dp_dev, "DLYA %04o\n", insn & 01777);
YMSB = (insn >> 4) & 0077;
YLSB = (insn << 1) & 0036;
break;