asm code updated, Bass Masters fix
[picodrive.git] / Pico / carthw / svp / svp.c
index 9853439..bc7cddb 100644 (file)
@@ -1,6 +1,7 @@
 #include "../../PicoInt.h"
 
 svp_t *svp = NULL;
+int PicoSVPCycles = 800; // cycles/line
 
 static void PicoSVPReset(void)
 {
@@ -11,12 +12,12 @@ static void PicoSVPReset(void)
 }
 
 
-static void PicoSVPLine(void)
+static void PicoSVPLine(int count)
 {
        // ???
        // OSC_NTSC / 3.0 / 60.0 / 262.0 ~= 1139
        // OSC_PAL  / 3.0 / 50.0 / 312.0 ~= 1137
-       ssp1601_run(800);
+       ssp1601_run(PicoSVPCycles * count);
 
        // test mode
        //if (Pico.m.frame_count == 13) PicoPad[0] |= 0xff;