From aade30756a9a806d7fea41b8e44023ae1bce9212 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sat, 25 Mar 2017 11:31:43 -0700 Subject: Fix latching of V32 mode bit --- vdp.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vdp.c') diff --git a/vdp.c b/vdp.c index 51e6726..30b04bd 100644 --- a/vdp.c +++ b/vdp.c @@ -1479,6 +1479,9 @@ static void vdp_advance_line(vdp_context *context) } 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; } -- cgit v1.2.3