+ if (PicoPicohw.fifo_bytes > 0)
+ {
+ PicoPicohw.fifo_line_bytes += fifo_bytes_line * count;
+ if (PicoPicohw.fifo_line_bytes >= (1<<16)) {
+ PicoPicohw.fifo_bytes -= PicoPicohw.fifo_line_bytes >> 16;
+ PicoPicohw.fifo_line_bytes &= 0xffff;
+ if (PicoPicohw.fifo_bytes < 0)
+ PicoPicohw.fifo_bytes = 0;
+ }
+ }
+ else
+ PicoPicohw.fifo_line_bytes = 0;
+
+#if 1
+ if (PicoPicohw.fifo_bytes_prev >= PICOHW_FIFO_IRQ_THRESHOLD &&
+ PicoPicohw.fifo_bytes < PICOHW_FIFO_IRQ_THRESHOLD) {
+ prev_line_cnt_irq3 = PicoPicohw.line_counter; // ?
+ elprintf(EL_PICOHW, "irq3, fb=%i", PicoPicohw.fifo_bytes);
+ SekInterrupt(3);
+ }
+ PicoPicohw.fifo_bytes_prev = PicoPicohw.fifo_bytes;
+#endif
+