diff vdp.c @ 1299:da1ffc4026c4

Fix latching of V32 mode bit
author Michael Pavone <pavone@retrodev.com>
date Sat, 25 Mar 2017 11:31:43 -0700
parents aa1a8eb5bb2b
children 810ae0287d66
line wrap: on
line diff
--- a/vdp.c	Sat Mar 25 00:21:32 2017 -0700
+++ b/vdp.c	Sat Mar 25 11:31:43 2017 -0700
@@ -1479,6 +1479,9 @@
 		} else if (!(context->latched_mode & BIT_PAL) &&  context->vcounter == 0xEB) {
 			context->vcounter = 0x1E5;
 		}
+		if (context->vcounter == 0x200 - context->border_top) {
+			latch_mode(context);
+		}
 	} else if (context->vcounter == 0xDB) {
 		context->vcounter = 0x1D5;
 	}