X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2FPico.c;h=259dc18a11065cff8b5baaea747fda661ffbea21;hb=f58f05d28a40e783a6159186d01dbfe67cdc0728;hp=62b1b48ac094a78fa048d0c0863765a413b1398f;hpb=0af33fe0ef24a3e3b65217ad0d7aa2db03d16fc1;p=picodrive.git diff --git a/Pico/Pico.c b/Pico/Pico.c index 62b1b48..259dc18 100644 --- a/Pico/Pico.c +++ b/Pico/Pico.c @@ -8,7 +8,6 @@ #include "PicoInt.h" -#include "sound/sound.h" #include "sound/ym2612.h" int PicoVer=0x0110; @@ -218,8 +217,8 @@ static int dma_bsycles[] = { (488<<8)/9, (488<<8)/18, (488<<8)/17, (488<<8)/9 }; -//static -int CheckDMA(void) + +PICO_INTERNAL int CheckDMA(void) { int burn = 0, bytes_can = 0, dma_op = Pico.video.reg[0x17]>>6; // see gens for 00 and 01 modes int bytes = Pico.m.dma_bytes; @@ -459,19 +458,9 @@ static void PicoRunZ80Simple(int line_from, int line_to) { int line_from_r=line_from, line_to_r=line_to, line = line_from; int line_sample = Pico.m.pal ? 68 : 93; - extern const unsigned short vcounts[]; if(!(PicoOpt&4) || Pico.m.z80Run == 0) { line_from_r = line_to_r; line_to_r = 0; } - if(z80startCycle != 0x01000000) { - line_from_r = vcounts[z80startCycle>>8]+1; - z80startCycle = 0x01000000; - } - if(z80stopCycle != 0x01000000) { - line_to_r = vcounts[z80stopCycle>>8]+1; - z80stopCycle = 0x01000000; - } - if(PicoOpt&1) { // we have ym2612 enabled, so we have to run Z80 in lines, so we could update DAC and timers for(; line < line_to; line++) { @@ -653,6 +642,13 @@ int PicoFrame(void) return 0; } +void PicoFrameDrawOnly(void) +{ + int y; + PicoFrameStart(); + for (y=0;y<224;y++) PicoLine(y); +} + // callback to output message from emu void (*PicoMessage)(const char *msg)=NULL;