From cd2b4516e57828ea4a5b9ebe034ec3588fbc2116 Mon Sep 17 00:00:00 2001 From: Jim Wilcoxson Date: Fri, 17 Apr 2020 20:26:25 +0000 Subject: [PATCH] em.c: remove searchloadmap from SR-mode flow tracing The emulator reads SEG load maps for Primos and displays symbolic names and offsets during tracing. But when running in S/R modes during initial startup, there is no point in doing a load map lookup and it's somewhat confusing to see segment 0 symbol names printed for all effective addresses. A blank name was already printed for user-mode S/R traces because the segment number is > 01777, usually 04000. --- em.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/em.c b/em.c index 25053a5..ffbb698 100644 --- a/em.c +++ b/em.c @@ -5228,7 +5228,7 @@ xec: if ((getcrs16(KEYS) & 016000) == 014000) { /* 64V mode */ ea = ea64v(inst, earp); - TRACE(T_FLOW, " EA: %o/%o %s\n",ea>>16, ea & 0xFFFF, searchloadmap(ea,' ')); + TRACE(T_FLOW, " EA: %o/%o %s\n", ea>>16, ea & 0xFFFF, searchloadmap(ea,' ')); goto *(gv.disp_vmr[VMRINSTIX(inst)]); } else if ((getcrs16(KEYS) & 0016000) == 010000) { /* E32I */ @@ -5240,17 +5240,17 @@ xec: } else if (getcrs16(KEYS) & 004000) { /* 32R/64R */ ea = ea32r64r(earp, inst); - TRACE(T_FLOW, " EA: %o/%o %s\n",ea>>16, ea & 0xFFFF, searchloadmap(ea,' ')); + TRACE(T_FLOW, " EA: %o/%o\n", ea>>16, ea & 0xFFFF); goto *(gv.disp_rmr[RMRINSTIX(inst)]); } else if (getcrs16(KEYS) & 002000) { ea = ea32s(inst); - TRACE(T_FLOW, " EA: %o/%o %s\n",ea>>16, ea & 0xFFFF, searchloadmap(ea,' ')); + TRACE(T_FLOW, " EA: %o/%o\n", ea>>16, ea & 0xFFFF); goto *(gv.disp_rmr[SMRINSTIX(inst)]); } else if ((getcrs16(KEYS) & 016000) == 0) { ea = ea16s(inst); - TRACE(T_FLOW, " EA: %o/%o %s\n",ea>>16, ea & 0xFFFF, searchloadmap(ea,' ')); + TRACE(T_FLOW, " EA: %o/%o\n", ea>>16, ea & 0xFFFF); goto *(gv.disp_rmr[SMRINSTIX(inst)]); } else {