1
0
mirror of https://github.com/rcornwell/sims.git synced 2026-05-01 13:57:34 +00:00

KA10: Set output only devices to default to append mode.

This commit is contained in:
Richard Cornwell
2020-05-31 20:57:44 -04:00
parent df0633d8a8
commit 3475f113e4
4 changed files with 5 additions and 0 deletions

View File

@@ -2163,6 +2163,7 @@ t_stat lp20_reset (DEVICE *dptr)
t_stat lp20_attach (UNIT *uptr, CONST char *cptr)
{
sim_switches |= SWMASK ('A'); /* Position to EOF */
return attach_unit (uptr, cptr);
}

View File

@@ -246,6 +246,7 @@ cp_srv(UNIT *uptr) {
t_stat
cp_attach(UNIT * uptr, CONST char *file)
{
sim_switches |= SWMASK ('A'); /* Position to EOF */
return sim_card_attach(uptr, file);
}

View File

@@ -393,6 +393,7 @@ t_stat lpt_attach (UNIT *uptr, CONST char *cptr)
{
t_stat reason;
sim_switches |= SWMASK ('A'); /* Position to EOF */
reason = attach_unit (uptr, cptr);
if (sim_switches & SIM_SW_REST)
return reason;

View File

@@ -209,6 +209,7 @@ t_stat ptp_attach (UNIT *uptr, CONST char *cptr)
{
t_stat reason;
sim_switches |= SWMASK ('A'); /* Position to EOF */
reason = attach_unit (uptr, cptr);
uptr->STATUS &= ~NO_TAPE_PP;
return reason;
@@ -409,6 +410,7 @@ fprintf (st, "Paper Tape Punch (PTP)\n\n");
fprintf (st, "The paper tape punch (PTP) writes data to a disk file. The POS register\n");
fprintf (st, "specifies the number of the next data item to be written. Thus, by changing\n");
fprintf (st, "POS, the user can backspace or advance the punch.\n");
fprintf (st, "A new file can be created if you attach with the -N switch\n\n");
fprint_set_help (st, dptr);
fprint_show_help (st, dptr);
fprint_reg_help (st, dptr);