Mercurial > repos > blastem
changeset 1299:da1ffc4026c4
Fix latching of V32 mode bit
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 25 Mar 2017 11:31:43 -0700 |
parents | d5a47597b61f |
children | 4b893b02444e |
files | Makefile vdp.c |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Sat Mar 25 00:21:32 2017 -0700 +++ b/Makefile Sat Mar 25 11:31:43 2017 -0700 @@ -82,8 +82,7 @@ endif ifdef PROFILE -CFLAGS+= -pg -LDFLAGS+= -pg +LDFLAGS+= -Wl,--no-as-needed -lprofiler -Wl,--as-needed endif ifdef NOGL CFLAGS+= -DDISABLE_OPENGL
--- 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; }