comparison vdp.c @ 2473:cf3e8a19aa25

Fix Ax Battler: A Legend of Golden Axe
author Michael Pavone <pavone@retrodev.com>
date Sun, 25 Feb 2024 23:59:37 -0800
parents b0408f38f464
children b62580dc6f30
comparison
equal deleted inserted replaced
2472:f171a12fc98c 2473:cf3e8a19aa25
4881 cur->address = context->address; 4881 cur->address = context->address;
4882 cur->value = value; 4882 cur->value = value;
4883 if (context->regs[REG_MODE_2] & BIT_MODE_5) { 4883 if (context->regs[REG_MODE_2] & BIT_MODE_5) {
4884 cur->cd = context->cd; 4884 cur->cd = context->cd;
4885 } else { 4885 } else {
4886 cur->cd = (context->cd & 2) | 1; 4886 if ((context->cd & 3) == CRAM_WRITE) {
4887 cur->cd = CRAM_WRITE;
4888 } else {
4889 cur->cd = VRAM_WRITE;
4890 }
4887 } 4891 }
4888 cur->partial = 3; 4892 cur->partial = 3;
4889 if (context->fifo_read < 0) { 4893 if (context->fifo_read < 0) {
4890 context->fifo_read = context->fifo_write; 4894 context->fifo_read = context->fifo_write;
4891 } 4895 }