mirror of
https://github.com/open-simh/simh.git
synced 2026-05-04 15:16:06 +00:00
Provide more useful help for VAX simulator boot commands and clearer error reports for boot command errors
This commit is contained in:
@@ -117,7 +117,8 @@ DEVICE sysd_dev = {
|
||||
|
||||
CTAB vax610_cmd[] = {
|
||||
{ "BOOT", &vax610_boot, RU_BOOT,
|
||||
"bo{ot} <device>{/R5:flg} boot device\n", &run_cmd_message },
|
||||
"bo{ot} <device>{/R5:flg} boot device\n"
|
||||
" type HELP CPU to see bootable devices\n", &run_cmd_message },
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
@@ -336,8 +337,15 @@ t_stat vax610_boot (int32 flag, char *ptr)
|
||||
t_stat r;
|
||||
|
||||
r = vax610_boot_parse (flag, ptr); /* parse the boot cmd */
|
||||
if (r != SCPE_OK) /* error? */
|
||||
if (r != SCPE_OK) { /* error? */
|
||||
if (r >= SCPE_BASE) { /* message available? */
|
||||
printf ("%s\n", sim_error_text (r));
|
||||
if (sim_log)
|
||||
fprintf (sim_log, "%s\n", sim_error_text (r));
|
||||
r |= SCPE_NOMESSAGE;
|
||||
}
|
||||
return r;
|
||||
}
|
||||
strncpy (cpu_boot_cmd, ptr, CBUFSIZE); /* save for reboot */
|
||||
return run_cmd (flag, "CPU");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user