Mercurial > repos > blastem
comparison vdp.c @ 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 | 4b2ac43c106e |
comparison
equal
deleted
inserted
replaced
2337:0e3118325c1c | 2338:bc17ece8dd00 |
---|---|
1168 uint32_t address = context->address ^ 1; | 1168 uint32_t address = context->address ^ 1; |
1169 if (!(context->regs[REG_MODE_2] & BIT_MODE_5)) { | 1169 if (!(context->regs[REG_MODE_2] & BIT_MODE_5)) { |
1170 address = mode4_address_map[address & 0x3FFF]; | 1170 address = mode4_address_map[address & 0x3FFF]; |
1171 } | 1171 } |
1172 //TODO: 128K VRAM support | 1172 //TODO: 128K VRAM support |
1173 context->prefetch = context->vdpmem[context->address & 0xFFFF]; | 1173 context->prefetch = context->vdpmem[address & 0xFFFF]; |
1174 context->prefetch |= context->fifo[context->fifo_write].value & 0xFF00; | 1174 context->prefetch |= context->fifo[context->fifo_write].value & 0xFF00; |
1175 context->flags |= FLAG_READ_FETCHED; | 1175 context->flags |= FLAG_READ_FETCHED; |
1176 //Should this happen after the prefetch or after the read? | 1176 //Should this happen after the prefetch or after the read? |
1177 increment_address(context); | 1177 increment_address(context); |
1178 break; | 1178 break; |