mirror of
https://github.com/open-simh/simh.git
synced 2026-01-13 23:37:13 +00:00
SCP: Handle ON processing for stdin supplied commands
Additionally, allow STEP to have ON actions
This commit is contained in:
parent
8233fdc3c1
commit
93bff5ea05
10
scp.c
10
scp.c
@ -2996,6 +2996,13 @@ while (stat != SCPE_EXIT) { /* in case exit */
|
||||
if (stat >= SCPE_BASE) /* error? */
|
||||
sim_printf ("%s\n", sim_error_text (stat));
|
||||
}
|
||||
if ((sim_on_check[sim_do_depth]) &&
|
||||
(stat != SCPE_OK)) {
|
||||
if ((stat <= SCPE_MAX_ERR) && sim_on_actions[sim_do_depth][stat])
|
||||
sim_brk_setact (sim_on_actions[sim_do_depth][stat]);
|
||||
else
|
||||
sim_brk_setact (sim_on_actions[sim_do_depth][0]);
|
||||
}
|
||||
if (sim_vm_post != NULL)
|
||||
(*sim_vm_post) (TRUE);
|
||||
} /* end while */
|
||||
@ -4007,8 +4014,7 @@ do {
|
||||
stat = SCPE_OK; /* so adjust it to SCPE_OK */
|
||||
if (staying &&
|
||||
(sim_on_check[sim_do_depth]) &&
|
||||
(stat != SCPE_OK) &&
|
||||
(stat != SCPE_STEP)) {
|
||||
(stat != SCPE_OK)) {
|
||||
if ((stat <= SCPE_MAX_ERR) && sim_on_actions[sim_do_depth][stat])
|
||||
sim_brk_setact (sim_on_actions[sim_do_depth][stat]);
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user