1
0
mirror of https://github.com/simh/simh.git synced 2026-02-08 17:22:11 +00:00

All LP and CD devices: Removed use of ftell for pipe compatibility

This commit is contained in:
Bob Supnik
2022-05-16 04:57:30 -07:00
committed by Mark Pizzolato
parent 5d04198757
commit e2d3a2ae70
17 changed files with 152 additions and 105 deletions

View File

@@ -793,20 +793,19 @@ lpcolc = 0; /* reset col cntr */
for (i = 0; i < cnt; i++) { /* print 'n' newlines; each can complete a page */
fputc ('\n', lp20_unit.fileref);
if (dvuadv) { /* update DAVFU ptr */
dvptr = (dvptr + cnt) % dvlnt;
if (davfu[dvptr] & (1 << DV_TOF)) { /* at top of form? */
lppagc = (lppagc - 1) & PAGC_MASK; /* decr page cntr */
dvptr = (dvptr + cnt) % dvlnt;
if (davfu[dvptr] & (1 << DV_TOF)) { /* at top of form? */
lppagc = (lppagc - 1) & PAGC_MASK; /* decr page cntr */
if (lppagc == 0) {
lpcsa = lpcsa | CSA_PZRO; /* stop if zero */
lpcsa = lpcsa | CSA_PZRO; /* stop if zero */
stoppc = TRUE;
}
}
} /* At TOF */
} /* update pointer */
}
lp20_unit.pos = (t_addr)sim_ftell (lp20_unit.fileref);
if (stoppc) /* Crossed one or more TOFs? */
if (stoppc) /* crossed one or more TOFs? */
return FALSE;
return TRUE;
}