mirror of
https://github.com/rcornwell/sims.git
synced 2026-04-14 23:58:21 +00:00
I7000: Updated help commands.
This commit is contained in:
@@ -133,8 +133,7 @@ UNIT stack_unit[] = {
|
||||
DEVICE stack_dev = {
|
||||
"STKR", stack_unit, NULL, NULL,
|
||||
NUM_DEVS_CDP * 10, 10, 31, 1, 8, 7,
|
||||
NULL, NULL, NULL,
|
||||
NULL, NULL, NULL
|
||||
NULL, NULL, NULL, NULL, &sim_card_attach, &sim_card_detach
|
||||
};
|
||||
#endif
|
||||
|
||||
@@ -310,10 +309,22 @@ cdp_detach(UNIT * uptr)
|
||||
t_stat
|
||||
cdp_help(FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, const char *cptr)
|
||||
{
|
||||
fprintf (st, "Card Punch\n\n");
|
||||
fprintf (st, "%s\n\n", cdp_description(dptr));
|
||||
sim_card_attach_help(st, dptr, uptr, flag, cptr);
|
||||
#ifdef STACK_DEV
|
||||
fprintf (st, "stack device\n");
|
||||
fprintf (st, "If the punch device is not attached and instead the %s", stack_dev.name);
|
||||
fprintf (st, "device is attached, the cards\n will be sent out to the");
|
||||
fprintf (st, "given stacker based on the flag set by the processor.");
|
||||
#endif
|
||||
#ifdef I7070
|
||||
fprintf (st, "Unit record devices can be configured to interrupt the CPU on\n");
|
||||
fprintf (st, "one of two priority channels A or B, to set this\n\n");
|
||||
fprintf (st, " sim> set cp attena to set device to raise Atten A\n\n");
|
||||
#endif
|
||||
#ifdef I7010
|
||||
fprintf (st, "The card punch could be attached to either channel\n\n");
|
||||
fprintf (st, " sim> set cp chan=1 to set the punch on channel 1\n\n");
|
||||
#endif
|
||||
fprint_set_help(st, dptr);
|
||||
fprint_show_help(st, dptr);
|
||||
return SCPE_OK;
|
||||
@@ -322,7 +333,15 @@ cdp_help(FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, const char *cptr)
|
||||
const char *
|
||||
cdp_description(DEVICE *dptr)
|
||||
{
|
||||
return "Card Punch";
|
||||
#ifdef I7010
|
||||
return "1402 Card Punch";
|
||||
#endif
|
||||
#ifdef I7070
|
||||
return "7550 Card Punch";
|
||||
#endif
|
||||
#ifdef I7080
|
||||
return "721 Card Punch";
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -236,7 +236,7 @@ cdr_srv(UNIT *uptr) {
|
||||
}
|
||||
#ifdef I7070
|
||||
/* Check if load card. */
|
||||
if (uptr->capac && (data->image[uptr->capac] & 0x800)) {
|
||||
if (uptr->capac && (data->image[uptr->capac-1] & 0x800)) {
|
||||
uptr->u5 |= URCSTA_LOAD;
|
||||
} else {
|
||||
uptr->u5 &= ~URCSTA_LOAD;
|
||||
@@ -360,14 +360,22 @@ cdr_getload(FILE *st, UNIT *uptr, int32 v, CONST void *desc)
|
||||
t_stat
|
||||
cdr_help(FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, const char *cptr)
|
||||
{
|
||||
fprintf (st, "Card Reader\n\n");
|
||||
fprintf (st, "%s\n\n", cdr_description(dptr));
|
||||
sim_card_attach_help(st, dptr, uptr, flag, cptr);
|
||||
fprintf (st, "The system supports up to two card readers.\n");
|
||||
#ifdef I7070
|
||||
fprintf (st, " Atten and LCOL\n");
|
||||
fprintf (st, "Unit record devices can be configured to interrupt the CPU on\n");
|
||||
fprintf (st, "one of two priority channels A or B, to set this\n\n");
|
||||
fprintf (st, " sim> set cp attena to set device to raise Atten A\n\n");
|
||||
fprintf (st, "The 7500 Card reader supported a load mode, this was\n");
|
||||
fprintf (st, "selected by use of a 12 punch in a given column. When this\n");
|
||||
fprintf (st, "was seen the card was read into 8 words\n");
|
||||
fprintf (st, " sim> set cp lcol=72 sets column to select load mode\n\n");
|
||||
#endif
|
||||
#ifdef I7010
|
||||
fprintf (st, " channel\n");
|
||||
#endif
|
||||
fprintf (st, "The card punch could be attached to either channel\n\n");
|
||||
fprintf (st, " sim> set cp chan=1 to set the punch on channel 1\n\n");
|
||||
#endif
|
||||
fprint_set_help(st, dptr);
|
||||
fprint_show_help(st, dptr);
|
||||
return SCPE_OK;
|
||||
@@ -376,7 +384,15 @@ cdr_help(FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, const char *cptr)
|
||||
const char *
|
||||
cdr_description(DEVICE *dptr)
|
||||
{
|
||||
return "Card Reader";
|
||||
#ifdef I7010
|
||||
return "1402 Card Punch";
|
||||
#endif
|
||||
#ifdef I7070
|
||||
return "7500 Card Reader";
|
||||
#endif
|
||||
#ifdef I7080
|
||||
return "711 Card Reader";
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -493,7 +493,8 @@ lpr_detach(UNIT * uptr)
|
||||
t_stat
|
||||
lpr_help(FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, const char *cptr)
|
||||
{
|
||||
fprintf (st, "Line Printer\n\n");
|
||||
|
||||
fprintf (st, "%s\n\n", lpr_description(dptr));
|
||||
fprintf (st, "The line printer output can be echoed to the console to check the \n");
|
||||
fprintf (st, "progress of jobs being run. This can be done with the\n");
|
||||
fprintf (st, " sim> SET LPn ECHO\n\n");
|
||||
@@ -504,10 +505,13 @@ lpr_help(FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, const char *cptr)
|
||||
fprintf (st, "Spacing control\n");
|
||||
#endif
|
||||
#ifdef I7070
|
||||
fprintf (st, "ATTEN CONTROL\n");
|
||||
fprintf (st, "Unit record devices can be configured to interrupt the CPU on\n");
|
||||
fprintf (st, "one of two priority channels A or B, to set this\n\n");
|
||||
fprintf (st, " sim> set cp attena to set device to raise Atten A\n\n");
|
||||
#endif
|
||||
#ifdef I7010
|
||||
fprintf (st, "Channel\n");
|
||||
fprintf (st, "The card punch could be attached to either channel\n\n");
|
||||
fprintf (st, " sim> set cp chan=1 to set the punch on channel 1\n\n");
|
||||
#endif
|
||||
fprint_set_help(st, dptr);
|
||||
fprint_show_help(st, dptr);
|
||||
@@ -517,7 +521,15 @@ lpr_help(FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, const char *cptr)
|
||||
const char *
|
||||
lpr_description(DEVICE *dptr)
|
||||
{
|
||||
return "Line Printer";
|
||||
#ifdef I7010
|
||||
return "1403 Line Printer";
|
||||
#endif
|
||||
#ifdef I7070
|
||||
return "7400 Line Printer";
|
||||
#endif
|
||||
#ifdef I7080
|
||||
return "716 Line Printer";
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -283,7 +283,7 @@ cdp_help(FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, const char *cptr)
|
||||
const char *
|
||||
cdp_description(DEVICE *dptr)
|
||||
{
|
||||
return "Card Punch";
|
||||
return "721 Card Punch";
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -332,7 +332,7 @@ cdr_help(FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, const char *cptr)
|
||||
const char *
|
||||
cdr_description(DEVICE *dptr)
|
||||
{
|
||||
return "Card Reader";
|
||||
return "711 Card Reader";
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -613,7 +613,7 @@ lpr_help(FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, const char *cptr)
|
||||
const char *
|
||||
lpr_description(DEVICE *dptr)
|
||||
{
|
||||
return "Line Printer";
|
||||
return "716 Line Printer";
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user