changeset 1137:9e0f2ea4a0fc

Fix slot tracking screwup
author Michael Pavone <pavone@retrodev.com>
date Sun, 01 Jan 2017 23:00:28 -0800
parents 52f25c41abdd
children 25268334a24c
files vdp.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vdp.c	Sun Jan 01 22:47:23 2017 -0800
+++ b/vdp.c	Sun Jan 01 23:00:28 2017 -0800
@@ -1824,7 +1824,12 @@
 		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);