Compare commits

...

1 commit

Author SHA1 Message Date
Keir Fraser
359d9643f1 floppy: Gently de-jitter/precomp WDATA line
This can be enough to handle heavily-precompensated marginal write
signals.
2024-01-10 15:38:15 +00:00

View file

@ -686,6 +686,8 @@ static void IRQ_wdata_dma(void)
if (!(bc_prod&31))
bc_buf[((bc_prod-1) / 32) & bc_bufmask] = htobe32(bc_dat);
}
curr += cell >> 1; /* remove the 1/2-cell bias */
prev -= curr >> 3; /* de-jitter/precomp: carry 1/8 of phase error */
bc_dat = (bc_dat << 1) | 1;
bc_prod++;
switch (sync) {