summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-01-01 23:00:28 -0800
committerMichael Pavone <pavone@retrodev.com>2017-01-01 23:00:28 -0800
commite87e2d186f3a5663cf91eb93dd1950299bb17020 (patch)
tree505bc114a3c7dde03f0fbd7bbddc50c8fbc32511
parent36a169a1c807db81bdf38243c14e74e00f2e54be (diff)
Fix slot tracking screwup
-rw-r--r--vdp.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/vdp.c b/vdp.c
index f6fc948..a6189b5 100644
--- a/vdp.c
+++ b/vdp.c
@@ -1824,7 +1824,12 @@ static void vdp_h32_mode4(vdp_context * context, uint32_t target_cycles)
CHECK_LIMIT
case 147:
external_slot(context);
- CHECK_LIMIT
+ if (context->flags & FLAG_DMA_RUN) {
+ run_dma_src(context, -1);
+ }
+ context->hslot = 233;
+ context->cycles += slot_cycles;
+ CHECK_ONLY
//!HSYNC low
case 233:
external_slot(context);