1
0
mirror of https://github.com/simh/simh.git synced 2026-03-01 01:30:30 +00:00

VAXen with console ROMs: Issue meaningful message for invalid boot command args

This commit is contained in:
Mark Pizzolato
2023-02-06 00:02:35 -10:00
parent 08a7dc8417
commit dc792c2731
6 changed files with 6 additions and 6 deletions

View File

@@ -898,7 +898,7 @@ char gbuf[CBUFSIZE];
get_glyph (ptr, gbuf, 0); /* get glyph */
if (gbuf[0] && strcmp (gbuf, "CPU"))
return SCPE_ARG; /* Only can specify CPU device */
return sim_messagef (SCPE_ARG, "Invalid boot device: %s, must specify BOOT CPU or simply BOOT\n", gbuf);
return run_cmd (flag, "CPU");
}

View File

@@ -836,7 +836,7 @@ char gbuf[CBUFSIZE];
get_glyph (ptr, gbuf, 0); /* get glyph */
if (gbuf[0] && strcmp (gbuf, "CPU"))
return SCPE_ARG; /* Only can specify CPU device */
return sim_messagef (SCPE_ARG, "Invalid boot device: %s, must specify BOOT CPU or simply BOOT\n", gbuf);
return run_cmd (flag, "CPU");
}

View File

@@ -957,7 +957,7 @@ char gbuf[CBUFSIZE];
get_glyph (ptr, gbuf, 0); /* get glyph */
if (gbuf[0] && strcmp (gbuf, "CPU"))
return SCPE_ARG; /* Only can specify CPU device */
return sim_messagef (SCPE_ARG, "Invalid boot device: %s, must specify BOOT CPU or simply BOOT\n", gbuf);
return run_cmd (flag, "CPU");
}

View File

@@ -954,7 +954,7 @@ char gbuf[CBUFSIZE];
get_glyph (ptr, gbuf, 0); /* get glyph */
if (gbuf[0] && strcmp (gbuf, "CPU"))
return SCPE_ARG; /* Only can specify CPU device */
return sim_messagef (SCPE_ARG, "Invalid boot device: %s, must specify BOOT CPU or simply BOOT\n", gbuf);
return run_cmd (flag, "CPU");
}

View File

@@ -903,7 +903,7 @@ if ((ptr = get_sim_sw (ptr)) == NULL) /* get switches */
return SCPE_INVSW;
get_glyph (ptr, gbuf, 0); /* get glyph */
if (gbuf[0] && strcmp (gbuf, "CPU"))
return SCPE_ARG; /* Only can specify CPU device */
return sim_messagef (SCPE_ARG, "Invalid boot device: %s, must specify BOOT CPU or simply BOOT\n", gbuf);
return run_cmd (flag, "CPU");
}

View File

@@ -1700,7 +1700,7 @@ if ((ptr = get_sim_sw (ptr)) == NULL) /* get switches */
return SCPE_INVSW;
get_glyph (ptr, gbuf, 0); /* get glyph */
if (gbuf[0] && strcmp (gbuf, "CPU"))
return SCPE_ARG; /* Only can specify CPU device */
return sim_messagef (SCPE_ARG, "Invalid boot device: %s, must specify BOOT CPU or simply BOOT\n", gbuf);
return run_cmd (flag, "CPU");
}