1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 19:56:25 +00:00

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

Merge changes from v3.12-2
This commit is contained in:
Bob Supnik
2022-06-16 16:13:46 -07:00
committed by Mark Pizzolato
parent 1182157a4d
commit d35f4d9695
16 changed files with 141 additions and 95 deletions

View File

@@ -799,19 +799,18 @@ for (i = 0; i < cnt; i++) { /* print 'n' newlines; e
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 */
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;
}