1
0
mirror of https://github.com/simh/simh.git synced 2026-05-05 07:23:34 +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

@@ -88,6 +88,7 @@ uint32 rom_lw[MCTL_NUM][ROMSIZE >> 2];
extern UNIT cpu_unit;
t_stat mctl_reset (DEVICE *dptr);
char *mctl_description (DEVICE *dptr);
t_stat mctl_rdreg (int32 *val, int32 pa, int32 mode);
t_stat mctl_wrreg (int32 val, int32 pa, int32 mode);
@@ -141,14 +142,18 @@ DEVICE mctl_dev[] = {
1, 16, 16, 1, 16, 8,
NULL, NULL, &mctl_reset,
NULL, NULL, NULL,
&mctl0_dib, DEV_NEXUS
&mctl0_dib, DEV_NEXUS, 0,
NULL, NULL, NULL, NULL, NULL, NULL,
&mctl_description
},
{
"MCTL1", &mctl1_unit, mctl1_reg, mctl1_mod,
1, 16, 16, 1, 16, 8,
NULL, NULL, &mctl_reset,
NULL, NULL, NULL,
&mctl1_dib, DEV_NEXUS
&mctl1_dib, DEV_NEXUS, 0,
NULL, NULL, NULL, NULL, NULL, NULL,
&mctl_description
}
};
@@ -276,3 +281,11 @@ for (i = 0; i < MCTL_NUM; i++) { /* init for MS780C */
}
return SCPE_OK;
}
char *mctl_description (DEVICE *dptr)
{
static char buf[64];
sprintf (buf, "Memory controller %d", (int)(dptr-mctl_dev));
return buf;
}