1
0
mirror of https://github.com/simh/simh.git synced 2026-04-30 05:25:05 +00:00

Created a way for devices to have a description presentation routine and if it is supplied for its output to be visible with a SHOW SYSTEM command. Provided device description routines for devices used in the VAX simulators

This commit is contained in:
Mark Pizzolato
2013-01-25 12:04:25 -08:00
parent bb9f9155f2
commit cbe11147fc
46 changed files with 695 additions and 113 deletions

View File

@@ -333,6 +333,8 @@ t_stat cr_set_reset (UNIT *, int32, char *, void *);
t_stat cr_set_stop (UNIT *, int32, char *, void *);
t_stat cr_set_trans (UNIT *, int32, char*, void *);
t_stat cr_show_trans (FILE *, UNIT *, int32, void *);
char *cr_description (DEVICE *dptr);
/* CR data structures
@@ -408,7 +410,10 @@ DEVICE cr_dev = {
1, 10, 31, 1, DEV_RDX, 8,
NULL, NULL, &cr_reset,
NULL, &cr_attach, &cr_detach,
&cr_dib, DEV_DISABLE | DFLT_DIS | DEV_UBUS | DEV_DEBUG };
&cr_dib, DEV_DISABLE | DFLT_DIS | DEV_UBUS | DEV_DEBUG, 0,
NULL, NULL, NULL, NULL, NULL, NULL,
&cr_description
};
/* Utility routines */
@@ -1282,3 +1287,8 @@ t_stat cr_show_trans ( FILE *st,
fprintf (st, "translation %s", trans[table]);
return (SCPE_OK);
}
char *cr_description (DEVICE *dptr)
{
return "CR11 card reader";
}