#include "../PicoInt.h"
-
+#include "../sound/ym2612.h"
extern unsigned char formatted_bram[4*0x10];
extern unsigned int s68k_poll_adclk;
void (*PicoMCDopenTray)(void) = NULL;
int (*PicoMCDcloseTray)(void) = NULL;
-#define dump_ram(ram,fname) \
-{ \
- int i, d; \
- FILE *f; \
-\
- for (i = 0; i < sizeof(ram); i+=2) { \
- d = (ram[i]<<8) | ram[i+1]; \
- *(unsigned short *)(ram+i) = d; \
- } \
- f = fopen(fname, "wb"); \
- if (f) { \
- fwrite(ram, 1, sizeof(ram), f); \
- fclose(f); \
- } \
- for (i = 0; i < sizeof(ram); i+=2) { \
- d = (ram[i]<<8) | ram[i+1]; \
- *(unsigned short *)(ram+i) = d; \
- } \
-}
-
-PICO_INTERNAL int PicoInitMCD(void)
+PICO_INTERNAL void PicoInitMCD(void)
{
SekInitS68k();
Init_CD_Driver();
-
- return 0;
}
-
PICO_INTERNAL void PicoExitMCD(void)
{
End_CD_Driver();
-
- //dump_ram(Pico_mcd->prg_ram, "prg.bin");
- //dump_ram(Pico.ram, "ram.bin");
}
PICO_INTERNAL void PicoPowerMCD(void)
#endif
// use SRam.data for RAM cart
- if (PicoOpt&0x8000) {
+ if (PicoOpt&POPT_EN_MCD_RAMCART) {
if (SRam.data == NULL)
SRam.data = calloc(1, 0x12000);
}
SekCycleCnt+=m68k_execute(cyc_do);
#elif defined(EMU_F68K)
g_m68kcontext=&PicoCpuFM68k;
- SekCycleCnt+=fm68k_emulate(cyc_do, 0);
+ SekCycleCnt+=fm68k_emulate(cyc_do, 0, 0);
#endif
}
SekCycleCntS68k+=m68k_execute(cyc_do);
#elif defined(EMU_F68K)
g_m68kcontext=&PicoCpuFS68k;
- SekCycleCntS68k+=fm68k_emulate(cyc_do, 0);
+ SekCycleCntS68k+=fm68k_emulate(cyc_do, 0, 0);
#endif
}
{
SekCycleAim+=cyc_m68k;
SekCycleAimS68k+=cyc_s68k;
- fm68k_emulate(0, 1);
+ fm68k_emulate(0, 1, 0);
}
#else
static __inline void SekRunPS(int cyc_m68k, int cyc_s68k)
SekCycleCnt += m68k_execute(cyc_do);
#elif defined(EMU_F68K)
g_m68kcontext = &PicoCpuFM68k;
- SekCycleCnt += fm68k_emulate(cyc_do, 0);
+ SekCycleCnt += fm68k_emulate(cyc_do, 0, 0);
#endif
}
if ((cyc_do = SekCycleAimS68k-SekCycleCntS68k-cycn_s68k) > 0) {
SekCycleCntS68k += m68k_execute(cyc_do);
#elif defined(EMU_F68K)
g_m68kcontext = &PicoCpuFS68k;
- SekCycleCntS68k += fm68k_emulate(cyc_do, 0);
+ SekCycleCntS68k += fm68k_emulate(cyc_do, 0, 0);
#endif
}
}
#include "../PicoFrameHints.c"
-PICO_INTERNAL int PicoFrameMCD(void)
+PICO_INTERNAL void PicoFrameMCD(void)
{
- if(!(PicoOpt&0x10))
+ if (!(PicoOpt&POPT_ALT_RENDERER))
PicoFrameStart();
PicoFrameHints();
-
- return 0;
}