mirror of
https://github.com/simh/simh.git
synced 2026-01-25 11:46:37 +00:00
Adding more device help
This commit is contained in:
@@ -184,6 +184,7 @@ extern uint32 nexus_req[NEXUS_HLVL];
|
||||
|
||||
t_stat uba_svc (UNIT *uptr);
|
||||
t_stat uba_reset (DEVICE *dptr);
|
||||
t_stat uba_help (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, char *cptr);
|
||||
char *uba_description (DEVICE *dptr);
|
||||
t_stat uba_ex (t_value *vptr, t_addr exta, UNIT *uptr, int32 sw);
|
||||
t_stat uba_dep (t_value val, t_addr exta, UNIT *uptr, int32 sw);
|
||||
@@ -265,13 +266,14 @@ MTAB uba_mod[] = {
|
||||
{ MTAB_XTD|MTAB_VDV, TR_UBA, "NEXUS", NULL,
|
||||
NULL, &show_nexus, NULL, "Display nexus" },
|
||||
{ MTAB_XTD|MTAB_VDV|MTAB_NMO, 0, "IOSPACE", NULL,
|
||||
NULL, &show_iospace, NULL, "Display I/O space address map" },
|
||||
NULL, &show_iospace, NULL, "Display IO address space assignments" },
|
||||
{ MTAB_XTD|MTAB_VDV, 1, "AUTOCONFIG", "AUTOCONFIG",
|
||||
&set_autocon, &show_autocon, NULL, "Enable/Display autoconfiguration" },
|
||||
{ MTAB_XTD|MTAB_VDV, 0, NULL, "NOAUTOCONFIG",
|
||||
&set_autocon, NULL, NULL, "Disable autoconfiguration" },
|
||||
{ MTAB_XTD|MTAB_VDV|MTAB_NMO|MTAB_SHP, 0, "VIRTUAL", NULL,
|
||||
NULL, &uba_show_virt, NULL, "Display translation for Unibus address arg" },
|
||||
NULL, &uba_show_virt, NULL, "Show physical address translation for Unibus\n"
|
||||
" address arg" },
|
||||
{ 0 }
|
||||
};
|
||||
|
||||
@@ -291,7 +293,7 @@ DEVICE uba_dev = {
|
||||
&uba_ex, &uba_dep, &uba_reset,
|
||||
NULL, NULL, NULL,
|
||||
&uba_dib, DEV_NEXUS | DEV_DEBUG, 0,
|
||||
uba_deb, NULL, NULL, NULL, NULL, NULL,
|
||||
uba_deb, NULL, NULL, &uba_help, NULL, NULL,
|
||||
&uba_description
|
||||
};
|
||||
|
||||
@@ -933,6 +935,20 @@ uba_cnf = UBACNF_UBIC;
|
||||
return SCPE_OK;
|
||||
}
|
||||
|
||||
t_stat uba_help (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, char *cptr)
|
||||
{
|
||||
fprintf (st, "Unibus Adapter (UBA)\n\n");
|
||||
fprintf (st, "The Unibus adapter (UBA) simulates the DW780.\n");
|
||||
fprint_set_help (st, dptr);
|
||||
fprint_show_help (st, dptr);
|
||||
fprintf (st, "\nThe UBA implements main memory examination and modification via the Unibus\n");
|
||||
fprintf (st, "map. The data width is always 16b:\n\n");
|
||||
fprintf (st, "EXAMINE UBA 0/10 examine main memory words corresponding\n");
|
||||
fprintf (st, " to Unibus addresses 0-10\n");
|
||||
fprint_reg_help (st, dptr);
|
||||
return SCPE_OK;
|
||||
}
|
||||
|
||||
char *uba_description (DEVICE *dptr)
|
||||
{
|
||||
return "Unibus adapter";
|
||||
|
||||
@@ -255,6 +255,7 @@ extern uint32 nexus_req[NEXUS_HLVL];
|
||||
extern UNIT cpu_unit;
|
||||
|
||||
t_stat mba_reset (DEVICE *dptr);
|
||||
t_stat mba_help (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, char *cptr);
|
||||
char *mba_description (DEVICE *dptr);
|
||||
t_stat mba_rdreg (int32 *val, int32 pa, int32 mode);
|
||||
t_stat mba_wrreg (int32 val, int32 pa, int32 lnt);
|
||||
@@ -341,7 +342,7 @@ DEVICE mba_dev[] = {
|
||||
NULL, NULL, &mba_reset,
|
||||
NULL, NULL, NULL,
|
||||
&mba0_dib, DEV_NEXUS | DEV_DEBUG, 0,
|
||||
mba_deb, NULL, NULL, NULL, NULL, NULL,
|
||||
mba_deb, NULL, NULL, &mba_help, NULL, NULL,
|
||||
&mba_description
|
||||
},
|
||||
{
|
||||
@@ -350,7 +351,7 @@ DEVICE mba_dev[] = {
|
||||
NULL, NULL, &mba_reset,
|
||||
NULL, NULL, NULL,
|
||||
&mba1_dib, DEV_NEXUS | DEV_DEBUG, 0,
|
||||
mba_deb, NULL, NULL, NULL, NULL, NULL,
|
||||
mba_deb, NULL, NULL, &mba_help, NULL, NULL,
|
||||
&mba_description
|
||||
}
|
||||
};
|
||||
@@ -856,6 +857,17 @@ if (mbabort[mb]) /* reset device */
|
||||
return SCPE_OK;
|
||||
}
|
||||
|
||||
t_stat mba_help (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, char *cptr)
|
||||
{
|
||||
fprintf (st, "Massbus Adapters (MBA0, MBA1)\n\n");
|
||||
fprintf (st, "The Massbus adapters (MBA0, MBA1) simulate RH780's. MBA0 is assigned to the\n");
|
||||
fprintf (st, "RP disk drives, MBA1 to the TU tape drives.\n");
|
||||
fprint_set_help (st, dptr);
|
||||
fprint_show_help (st, dptr);
|
||||
fprint_reg_help (st, dptr);
|
||||
return SCPE_OK;
|
||||
}
|
||||
|
||||
char *mba_description (DEVICE *dptr)
|
||||
{
|
||||
static char buf[64];
|
||||
|
||||
Reference in New Issue
Block a user