+// common code for Pico.c and cd/Pico.c
+// (c) Copyright 2007, Grazvydas "notaz" Ignotas
+
#define CYCLES_M68K_LINE 488 // suitable for both PAL/NTSC
#define CYCLES_M68K_VINT_LAG 68
#define CYCLES_M68K_ASD 148
PicoLine(y);
if(PicoOpt&1)
- sound_timers_and_dac(y);
+ Psnd_timers_and_dac(y);
#ifndef PICO_CD
// get samples from sound chips
#ifdef PICO_CD
update_chips();
+#else
+ if (PicoLineHook) PicoLineHook(1);
#endif
}
z80_int();
if (PicoOpt&1)
- sound_timers_and_dac(y);
+ Psnd_timers_and_dac(y);
// get samples from sound chips
#ifndef PICO_CD
CYCLES_Z80_LINE - CYCLES_Z80_ASD, CYCLES_S68K_LINE - CYCLES_S68K_ASD);
#ifdef PICO_CD
- update_chips();
+ update_chips();
+#else
+ if (PicoLineHook) PicoLineHook(1);
#endif
// PAL line count might actually be 313 according to Steve Snake, but that would complicate things.
#endif
if(PicoOpt&1)
- sound_timers_and_dac(y);
+ Psnd_timers_and_dac(y);
// Run scanline:
if (Pico.m.dma_xfers) SekCyclesBurn(CheckDMA());
#ifdef PICO_CD
update_chips();
+#else
+ if (PicoLineHook) PicoLineHook(1);
#endif
}