1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 19:56:25 +00:00

Adding more device help

This commit is contained in:
Mark Pizzolato
2013-02-05 04:41:48 -08:00
parent ef13fdd0dc
commit 453890f3d7
7 changed files with 54 additions and 14 deletions

View File

@@ -660,10 +660,8 @@ fprintf (st, "by the Telnet client, a SET DCI DISCONNECT command, or a DETACH DC
fprintf (st, "Other special commands:\n\n");
fprintf (st, " sim> SHOW DCI CONNECTIONS show current connections\n");
fprintf (st, " sim> SHOW DCI STATISTICS show statistics for active connections\n");
fprintf (st, " sim> SET DCOn DISCONNECT disconnects the specified line.\n\n");
fprintf (st, "The input device (DCI) implements these registers:\n\n");
fprintf (st, " sim> SET DCOn DISCONNECT disconnects the specified line.\n");
fprint_reg_help (st, &dci_dev);
fprintf (st, "\nThe output device (DCO) implements these registers:\n\n");
fprint_reg_help (st, &dco_dev);
fprintf (st, "\nThe additional terminals do not support save and restore. All open connections\n");
fprintf (st, "are lost when the simulator shuts down or DCI is detached.\n");

View File

@@ -63,6 +63,7 @@ t_stat lpt_svc (UNIT *uptr);
t_stat lpt_reset (DEVICE *dptr);
t_stat lpt_attach (UNIT *uptr, char *ptr);
t_stat lpt_detach (UNIT *uptr);
t_stat lpt_help (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, char *cptr);
char *lpt_description (DEVICE *dptr);
/* LPT data structures
@@ -112,7 +113,7 @@ DEVICE lpt_dev = {
NULL, NULL, &lpt_reset,
NULL, &lpt_attach, &lpt_detach,
&lpt_dib, DEV_DISABLE | DEV_UBUS | DEV_QBUS, 0,
NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, &lpt_help, NULL, NULL,
&lpt_description
};
@@ -203,6 +204,23 @@ lpt_csr = lpt_csr | CSR_ERR;
return detach_unit (uptr);
}
t_stat lpt_help (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, char *cptr)
{
fprintf (st, "Line Printer (LPT)\n\n");
fprintf (st, "The line printer (LPT) writes data to a disk file. The POS register specifies\n");
fprintf (st, "the number of the next data item to be written. Thus, by changing POS, the\n");
fprintf (st, "user can backspace or advance the printer.\n");
fprint_set_help (st, dptr);
fprint_show_help (st, dptr);
fprint_reg_help (st, dptr);
fprintf (st, "\nError handling is as follows:\n\n");
fprintf (st, " error STOP_IOE processed as\n");
fprintf (st, " not attached 1 out of paper\n");
fprintf (st, " 0 disk not ready\n\n");
fprintf (st, " OS I/O error x report error and stop\n");
return SCPE_OK;
}
char *lpt_description (DEVICE *dptr)
{
return (UNIBUS) ? "LP11 line printer" :

View File

@@ -1245,7 +1245,6 @@ fprintf (st, "bad block option can be used only when a unit is attached to a fil
#if defined (VM_PDP11)
fprintf (st, "The RL device supports the BOOT command.\n");
#endif
fprintf (st, "\nThe RX211 implements these registers:\n\n");
fprint_reg_help (st, dptr);
fprintf (st, "\nError handling is as follows:\n\n");
fprintf (st, " error STOP_IOE processed as\n");

View File

@@ -725,7 +725,6 @@ fprintf (st, "\n");
fprintf (st, "The RX211 supports the BOOT command.\n\n");
#endif
fprintf (st, "The RX211 is disabled in a Qbus system with more than 256KB of memory.\n\n");
fprintf (st, "The RX211 implements these registers:\n\n");
fprint_reg_help (st, dptr);
fprintf (st, "\nError handling is as follows:\n\n");
fprintf (st, " error STOP_IOE processed as\n");