1
0
mirror of https://github.com/simh/simh.git synced 2026-01-26 04:01:38 +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

4
scp.c
View File

@@ -1059,7 +1059,6 @@ DEVICE *tdptr;
char *tptr;
char *namebuf;
char rangebuf[32];
char header[CBUFSIZE];
for (rptr = dptr->registers; rptr->name != NULL; rptr++) {
if (rptr->depth > 1)
@@ -1080,9 +1079,8 @@ if (!found) {
fprintf (st, "No register help is available for the %s device\n", dptr->name);
}
else {
sprintf (header, "\nThe %s device implements these registers:\n\n", dptr->name);
namebuf = calloc (max_namelen + 1, sizeof (*namebuf));
fprintf (st, "%s device registers:\n", dptr->name);
fprintf (st, "\nThe %s device implements these registers:\n\n", dptr->name);
for (rptr = dptr->registers; rptr->name != NULL; rptr++) {
if (rptr->desc) {
if (rptr->depth <= 1)