+static int Status_CDC;
+
+static __inline void check_cd_dma(void)
+{
+ int ddx;
+
+ if (!(Status_CDC & 0x08)) return;
+
+ ddx = Pico_mcd->s68k_regs[4] & 7;
+ if (ddx < 2) return; // invalid
+ if (ddx < 4) Pico_mcd->s68k_regs[4] |= 0x40; // Data set ready in host port
+ if (ddx == 6) return; // invalid
+
+ Update_CDC_TRansfer(ddx); // now go and do the actual transfer
+}
+