handle 'bad' dma better

This commit is contained in:
notaz 2017-10-21 00:02:38 +03:00
parent ee5d41a1ed
commit eef77d7a8b
2 changed files with 11 additions and 8 deletions

View file

@ -253,10 +253,9 @@ PICO_INTERNAL int CheckDMA(void)
xfers_can = dma_timings[dma_op];
if(xfers <= xfers_can)
{
if(dma_op&2) Pico.video.status&=~2; // dma no longer busy
else {
Pico.video.status &= ~SR_DMA;
if (!(dma_op & 2))
burn = xfers * dma_bsycles[dma_op] >> 8; // have to be approximate because can't afford division..
}
Pico.m.dma_xfers = 0;
} else {
if(!(dma_op&2)) burn = 488;