1
0
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:
Mark Pizzolato
2013-01-26 21:12:12 -08:00
parent 7dddb56845
commit 370f57ed56
6 changed files with 68 additions and 13 deletions

View File

@@ -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");
}