mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
handle 'bad' dma better
This commit is contained in:
parent
ee5d41a1ed
commit
eef77d7a8b
2 changed files with 11 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue