comparison vdp.c @ 2336:83f5529086c5

Make bogus word RAM read more appropriately bogus
author Michael Pavone <pavone@retrodev.com>
date Thu, 31 Aug 2023 20:28:33 -0700
parents 57ebbc1ade30
children 0e3118325c1c
comparison
equal deleted inserted replaced
2335:c05b7c5e6f11 2336:83f5529086c5
4633 //logic analyzer captures made it seem like the proper value is 4 slots, but that seems to cause trouble with the Nemesis' FIFO Wait State test 4633 //logic analyzer captures made it seem like the proper value is 4 slots, but that seems to cause trouble with the Nemesis' FIFO Wait State test
4634 //only captures are from a direct color DMA demo which will generally start DMA at a very specific point in display so other values are plausible 4634 //only captures are from a direct color DMA demo which will generally start DMA at a very specific point in display so other values are plausible
4635 //sticking with 3 slots for now until I can do some more captures 4635 //sticking with 3 slots for now until I can do some more captures
4636 vdp_run_context_full(context, context->cycles + 12 * ((context->regs[REG_MODE_2] & BIT_MODE_5) && (context->regs[REG_MODE_4] & BIT_H40) ? 4 : 5)); 4636 vdp_run_context_full(context, context->cycles + 12 * ((context->regs[REG_MODE_2] & BIT_MODE_5) && (context->regs[REG_MODE_4] & BIT_H40) ? 4 : 5));
4637 context->flags |= FLAG_DMA_RUN; 4637 context->flags |= FLAG_DMA_RUN;
4638 vdp_dma_started();
4638 return 1; 4639 return 1;
4639 } else { 4640 } else {
4640 context->flags |= FLAG_DMA_RUN; 4641 context->flags |= FLAG_DMA_RUN;
4641 //printf("DMA Copy Address: %X, New CD: %X, Source: %X\n", context->address, context->cd, (context->regs[REG_DMASRC_M] << 8) | context->regs[REG_DMASRC_L]); 4642 //printf("DMA Copy Address: %X, New CD: %X, Source: %X\n", context->address, context->cd, (context->regs[REG_DMASRC_M] << 8) | context->regs[REG_DMASRC_L]);
4642 } 4643 }