1
0
mirror of https://github.com/simh/simh.git synced 2026-02-12 02:48:38 +00:00

FRONTPANEL: Added mount and dismount commands for removable media

This commit is contained in:
Mark Pizzolato
2015-04-04 16:37:43 -07:00
parent a7da3c6f54
commit 325e369bfd
7 changed files with 144 additions and 6 deletions

View File

@@ -309,6 +309,20 @@ if (!sim_panel_get_registers (panel, NULL)) {
printf ("Unexpected success getting register data: %s\n", sim_panel_get_error());
goto Done;
}
sim_panel_clear_error ();
if (!sim_panel_dismount (panel, "RL0")) {
printf ("Unexpected success while dismounting media file from non mounted RL0: %s\n", sim_panel_get_error());
goto Done;
}
if (sim_panel_mount (panel, "RL0", "-N", "TEST-RL.DSK")) {
printf ("Error while mounting media file TEST-RL.DSK on RL0: %s\n", sim_panel_get_error());
goto Done;
}
if (sim_panel_dismount (panel, "RL0")) {
printf ("Error while dismounting media file from RL0: %s\n", sim_panel_get_error());
goto Done;
}
remove ("TEST-RL.DSK");
while (1) {
size_t i;
char cmd[512];