REMOTE_CONSOLE: Properly support HELP

As reported in #931
This commit is contained in:
Mark Pizzolato 2020-09-27 10:48:53 -07:00
parent 06c878b96a
commit 8fbec2d2aa

View file

@ -1752,10 +1752,14 @@ for (i=(was_active_command ? sim_rem_cmd_active_line : 0);
stat = sim_rem_collect_cmd_setup (i, &cptr); stat = sim_rem_collect_cmd_setup (i, &cptr);
} }
else { else {
if (sim_con_stable_registers && if ((sim_con_stable_registers && /* can we process command now? */
sim_rem_master_mode) { /* can we process command now? */ sim_rem_master_mode) ||
(cmdp->action == &x_help_cmd)) {
sim_debug (DBG_CMD, &sim_remote_console, "Processing Command directly\n"); sim_debug (DBG_CMD, &sim_remote_console, "Processing Command directly\n");
sim_oline = lp; /* specify output socket */ sim_oline = lp; /* specify output socket */
if (cmdp->action == &x_help_cmd)
x_help_cmd (0, cptr);
else
sim_remote_process_command (); sim_remote_process_command ();
stat = SCPE_OK; /* any message has already been emitted */ stat = SCPE_OK; /* any message has already been emitted */
} }