X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fpico.c;h=f6b43cd69eb63b25e01911bb2ada785bee60c413;hb=fda2f31020bf0d6cf7b5dd70ec01cf390b7e1483;hp=2e561c612645bba1cc5ac5c0200981c7876cfae5;hpb=93f9619ed819dee07948416c98ca2f1c70a22666;p=picodrive.git diff --git a/pico/pico.c b/pico/pico.c index 2e561c6..f6b43cd 100644 --- a/pico/pico.c +++ b/pico/pico.c @@ -14,7 +14,6 @@ struct Pico Pico; struct PicoMem PicoMem; PicoInterface PicoIn; -void (*PicoWriteSound)(int len) = NULL; // called at the best time to send sound buffer (PsndOut) to hardware void (*PicoResetHook)(void) = NULL; void (*PicoLineHook)(void) = NULL; @@ -253,10 +252,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; @@ -345,6 +343,4 @@ void PicoGetInternal(pint_t which, pint_ret_t *r) } } -// callback to output message from emu -void (*PicoMessage)(const char *msg)=NULL; - +// vim:ts=2:sw=2:expandtab