1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 11:46:37 +00:00

ALL simulators with instruction history support: Minor history enhancements

- Issue reasonable error message explaining invalid SET CPU HISTORY=n input
- Let SIGINT (^C) abort SHOW HISTORY output
This commit is contained in:
Mark Pizzolato
2023-12-04 10:57:31 -10:00
parent 42d6f414fc
commit 6d376b2fd9
29 changed files with 245 additions and 74 deletions

View File

@@ -525,6 +525,10 @@ cpu_show_hist (FILE *st, UNIT *uptr, int32 val, CONST void *desc)
j = history_m + history_i - history_n;
for (i = 0; i < history_n; i++) {
if (stop_cpu) { /* Control-C (SIGINT) */
stop_cpu = FALSE;
break; /* abandon remaining output */
}
fprintf (st, "%06o %06o %06o %06o %06o %d ",
history[j].PC,
history[j].IR,