1
0
mirror of https://github.com/simh/simh.git synced 2026-01-26 12:02:14 +00:00

DISK: Minimize the sim_disk_pdp10_attach arguments to minimize aguments

The sim_disk_pdp10_... API's specifically provide 1024 byte sector
interfaces for 64bit data.

Customize the attach help output to be more appropriate for the devices
in the running simulator and the device who's help is being displayed.
This commit is contained in:
Mark Pizzolato
2020-03-31 19:37:33 -07:00
parent 6efa9c0a92
commit b7824943df
3 changed files with 78 additions and 49 deletions

View File

@@ -1177,8 +1177,7 @@ t_stat r;
static const char *drives[] = {"RM03", "RP04", "RM80", "RP06", "RM05", "RP07", NULL};
uptr->capac = drv_tab[GET_DTYPE (uptr->flags)].size;
r = sim_disk_pdp10_attach (uptr, cptr, RP_NUMWD * sizeof (d10), sizeof (d10),
(uptr->flags & UNIT_AUTO) == 0, DBG_DSK,
r = sim_disk_pdp10_attach (uptr, cptr, (uptr->flags & UNIT_AUTO) == 0, DBG_DSK,
drv_tab[GET_DTYPE (uptr->flags)].name,
0, (uptr->flags & UNIT_AUTO) ? drives : NULL);
if (r != SCPE_OK)