+// should not see the busy flag
+static int t_dma_busy_vram(void)
+{
+ const u32 *src = (const u32 *)0x3c0000;
+ u16 sr[3];
+ int ok = 1;
+
+ vdp_wait_for_line_0();
+
+ do_setup_dma(src, 1);
+ write32(VDP_CTRL_PORT, CTL_WRITE_VRAM(0x100) | CTL_WRITE_DMA);
+ sr[0] = read16(VDP_CTRL_PORT);
+
+ do_setup_dma(src, 4);
+ write32(VDP_CTRL_PORT, CTL_WRITE_VRAM(0x100) | CTL_WRITE_DMA);
+ sr[1] = read16(VDP_CTRL_PORT);
+
+ VDP_setReg(VDP_DMA_LEN0, 8);
+ write32(VDP_CTRL_PORT, CTL_WRITE_VRAM(0x100) | CTL_WRITE_DMA);
+ sr[2] = read16(VDP_CTRL_PORT);
+
+ expect_bits(ok, sr[0], 0, SR_DMA);
+ expect_bits(ok, sr[1], 0, SR_DMA);
+ expect_bits(ok, sr[2], 0, SR_DMA);
+ return ok;
+}
+