summaryrefslogtreecommitdiff
path: root/vdp.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-03-25 11:31:43 -0700
committerMichael Pavone <pavone@retrodev.com>2017-03-25 11:31:43 -0700
commitaade30756a9a806d7fea41b8e44023ae1bce9212 (patch)
tree67cd2e33d313a1ec7ce94bd1a5eeea6adf53ccfe /vdp.c
parent61204637be41f75cfa67997b30f4820871c956b5 (diff)
Fix latching of V32 mode bit
Diffstat (limited to 'vdp.c')
-rw-r--r--vdp.c3
1 files changed, 3 insertions, 0 deletions
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;
}