1
0
mirror of https://github.com/simh/simh.git synced 2026-02-17 13:08:22 +00:00

Added framework to support per device help commands

This commit is contained in:
Mark Pizzolato
2012-12-30 13:12:15 -08:00
parent bdcfe994e0
commit ba0f331fa5
9 changed files with 161 additions and 20 deletions

View File

@@ -34,6 +34,7 @@ Public routines:
sim_disk_attach attach disk unit
sim_disk_detach detach disk unit
sim_disk_attach_help help routine for attaching disks
sim_disk_rdsect read disk sectors
sim_disk_rdsect_a read disk sectors asynchronously
sim_disk_wrsect write disk sectors
@@ -1131,6 +1132,12 @@ if (close_function (fileref) == EOF)
return SCPE_OK;
}
t_stat sim_disk_attach_help(FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, char *cptr)
{
fprintf (st, "%s Disk Attach Help\n", dptr->name);
return SCPE_OK;
}
t_stat sim_disk_reset (UNIT *uptr)
{
if (!(uptr->flags & UNIT_ATT)) /* attached? */