From a95a835b9857a7c8919565e41677b21bb3369f22 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Tue, 16 Apr 2019 15:55:54 -0700 Subject: [PATCH] PDP11: Fix typo in formatting instruction history including the SP --- PDP11/pdp11_cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PDP11/pdp11_cpu.c b/PDP11/pdp11_cpu.c index 69c38db4..c8ac0b38 100644 --- a/PDP11/pdp11_cpu.c +++ b/PDP11/pdp11_cpu.c @@ -3559,7 +3559,7 @@ for (k = 0; k < lnt; k++) { /* print specified */ h = &hst[(di++) % hst_lnt]; /* entry pointer */ if (h->pc & HIST_VLD) { /* instruction? */ ir = h->inst[0]; - fprintf (st, "%06o %06o %06o|", h->pc & ~HIST_VLD, h->psw); + fprintf (st, "%06o %06o %06o|", h->pc & ~HIST_VLD, h->sp, h->psw); if (((ir & 0070000) != 0) || /* dops, eis, fpp */ ((ir & 0177000) == 0004000)) /* jsr */ fprintf (st, "%06o %06o ", h->src, h->dst);