Mercurial > repos > blastem
changeset 2338:bc17ece8dd00
Fix silly regression in SMS mode
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 02 Sep 2023 10:52:16 -0700 |
parents | 0e3118325c1c |
children | 8990c2f431b1 |
files | vdp.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/vdp.c Thu Aug 31 23:34:48 2023 -0700 +++ b/vdp.c Sat Sep 02 10:52:16 2023 -0700 @@ -1170,7 +1170,7 @@ address = mode4_address_map[address & 0x3FFF]; } //TODO: 128K VRAM support - context->prefetch = context->vdpmem[context->address & 0xFFFF]; + context->prefetch = context->vdpmem[address & 0xFFFF]; context->prefetch |= context->fifo[context->fifo_write].value & 0xFF00; context->flags |= FLAG_READ_FETCHED; //Should this happen after the prefetch or after the read?