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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user