1
0
mirror of https://github.com/rcornwell/sims.git synced 2026-01-23 02:47:57 +00:00

I7000: Replaced fprintf with sim_printf.

This commit is contained in:
Richard Cornwell 2020-06-23 19:27:17 -04:00
parent bbbc8f1410
commit 14d07f5752
3 changed files with 4 additions and 9 deletions

View File

@ -1391,8 +1391,8 @@ 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",
uptr->u6-1, dbuffer[u][uptr->u6-1], data);
sim_printf("Mismatch %d %03o != %03o\n\r",
uptr->u6-1, dbuffer[u][uptr->u6-1], data);
disk_posterr(uptr, DATA_CHECK);
}
} else {

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

@ -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;
}