1
0
mirror of https://github.com/prirun/p50em.git synced 2026-01-13 23:26:13 +00:00

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.
This commit is contained in:
Jim Wilcoxson 2020-04-17 20:26:25 +00:00
parent 02f841d87f
commit cd2b4516e5

8
em.c
View File

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