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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user