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:
@@ -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? */
|
||||
|
||||
Reference in New Issue
Block a user