SCP: Allow HALTAFTER= to be specified for RUN/GO UNTIL commands

This commit is contained in:
Mark Pizzolato 2017-10-19 12:30:24 -07:00
parent 932d16da53
commit 6d1e873087

3
scp.c
View file

@ -6819,7 +6819,8 @@ if ((flag == RU_RUN) || (flag == RU_GO)) { /* run or go */
(flag == RU_RUN) ? "RUN" : "GO", gbuf, cptr); (flag == RU_RUN) ? "RUN" : "GO", gbuf, cptr);
sim_switches = 0; sim_switches = 0;
GET_SWITCHES (cptr); GET_SWITCHES (cptr);
if ((*cptr == '\'') || (*cptr == '"')) { /* Expect UNTIL condition */ if (((*cptr == '\'') || (*cptr == '"')) || /* Expect UNTIL condition */
(!sim_strncasecmp(cptr, "HALTAFTER=", 10))) {
r = expect_cmd (1, cptr); r = expect_cmd (1, cptr);
if (r != SCPE_OK) if (r != SCPE_OK)
return r; return r;