mirror of
https://github.com/simh/simh.git
synced 2026-02-02 06:42:18 +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:
@@ -7186,6 +7186,10 @@ t_stat cpu_show_hist (FILE *st, UNIT *uptr, int32 val, CONST void *desc)
|
||||
if (di < 0) di = di + hst_lnt;
|
||||
|
||||
for (k = 0; k < lnt; k++) {
|
||||
if (stop_cpu) { /* Control-C (SIGINT) */
|
||||
stop_cpu = FALSE;
|
||||
break; /* abandon remaining output */
|
||||
}
|
||||
h = &hst[(di++) % hst_lnt];
|
||||
|
||||
if (h->valid) { /* valid entry? */
|
||||
|
||||
Reference in New Issue
Block a user