1
0
mirror of https://github.com/simh/simh.git synced 2026-04-16 00:21:35 +00:00

SCP: stop_cpu and sim_is_running variables t_bool

This commit is contained in:
Mark Pizzolato
2018-02-02 05:02:27 -08:00
parent 797feeaff3
commit 760e7f2810
6 changed files with 22 additions and 33 deletions

View File

@@ -257,8 +257,7 @@ t_stat vt_clk (UNIT * this)
static int divider;
if (++divider == CLK_TPS/10) {
divider = 0;
if (SCPE_STOP == sim_poll_kbd())
stop_cpu = 1;
sim_poll_kbd();
}
}
@@ -1093,9 +1092,6 @@ int vt_getc (int num)
} else {
/* Console (keyboard) input. */
c = sim_poll_kbd();
if (c == SCPE_STOP) {
stop_cpu = 1; /* just in case */
}
if (! (c & SCPE_KFLAG))
return -1;
}