I7000: B5500: Set output only devices to default to append mode.

This commit is contained in:
Richard Cornwell 2020-06-23 21:01:09 -04:00
parent 377c9b8793
commit 1035aa3e7a
7 changed files with 8 additions and 9 deletions

View file

@ -281,6 +281,7 @@ cdp_attach(UNIT * uptr, CONST char *file)
{
t_stat r;
sim_switches |= SWMASK ('A'); /* Position to EOF */
if ((r = sim_card_attach(uptr, file)) != SCPE_OK)
return r;
if (uptr->up7 == 0) {

View file

@ -1391,7 +1391,7 @@ disk_write(UNIT * uptr, uint8 data, int chan, int eor)
data &= (sense[schan] & STAT_SIXBIT)?077:0277;
if (uptr->u5 & DSKSTA_CHECK) {
if (dbuffer[u][uptr->u6++] != data) {
fprintf(stderr, "Mismatch %d %03o != %03o\n\r",
sim_printf("Mismatch %d %03o != %03o\n\r",
uptr->u6-1, dbuffer[u][uptr->u6-1], data);
disk_posterr(uptr, DATA_CHECK);
}

View file

@ -475,6 +475,7 @@ lpr_attach(UNIT * uptr, CONST char *file)
{
t_stat r;
sim_switches |= SWMASK ('A'); /* Position to EOF */
if ((r = attach_unit(uptr, file)) != SCPE_OK)
return r;
uptr->u5 = 0;

View file

@ -381,9 +381,6 @@ uint32 mt_cmd(UNIT * uptr, uint16 cmd, uint16 dev)
uptr += unit;
/* If unit disabled return error */
if (uptr->flags & UNIT_DIS) {
/*
fprintf(stderr, "Attempt to access disconnected unit %s%d\n",
dptr->name, unit); */
return SCPE_NODEV;
}
@ -396,8 +393,7 @@ uint32 mt_cmd(UNIT * uptr, uint16 cmd, uint16 dev)
/* If drive is offline or not attached return not ready */
if ((uptr->flags & (UNIT_ATT | MTUF_ONLINE)) !=
(UNIT_ATT | MTUF_ONLINE)) {
fprintf(stderr, "Attempt to access offline unit %s%d\n\r",
dptr->name, unit);
sim_printf("Attempt to access offline unit %s%d\n\r", dptr->name, unit);
return SCPE_IOERR;
}
/* Check if drive is ready to recieve a command */

View file

@ -255,6 +255,7 @@ cdp_attach(UNIT * uptr, CONST char *file)
{
t_stat r;
sim_switches |= SWMASK ('A'); /* Position to EOF */
if ((r = sim_card_attach(uptr, file)) != SCPE_OK)
return r;
if (uptr->up7 == 0) {

View file

@ -4126,8 +4126,7 @@ prottrap:
#endif
default:
fprintf(stderr, "Invalid opcode %o IC=%o %012llo\n",
opcode, IC, temp);
sim_printf("Invalid opcode %o IC=%o %012llo\n", opcode, IC, temp);
reason = STOP_UUO;
break;
}

View file

@ -660,6 +660,7 @@ lpr_attach(UNIT * uptr, CONST char *file)
{
t_stat r;
sim_switches |= SWMASK ('A'); /* Position to EOF */
if ((r = attach_unit(uptr, file)) != SCPE_OK)
return r;
uptr->u5 = 0;