X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2FPico.c;h=b07af08d508c635c82bc742f147a7c4d30430080;hb=e807ac752b4653487ec5bdf516205e24a1c657eb;hp=bf8b707d42b3dc73bbddbf712e3105ae4a8a461a;hpb=e0978fa87d22f168ea9c039c6e2c5bf1274ba9e0;p=picodrive.git diff --git a/Pico/Pico.c b/Pico/Pico.c index bf8b707..b07af08 100644 --- a/Pico/Pico.c +++ b/Pico/Pico.c @@ -38,6 +38,7 @@ int PicoInit(void) z80_init(); // init even if we aren't going to use it PicoInitMCD(); + PicoSVPInit(); SRam.data=0; @@ -502,6 +503,17 @@ void PicoFrameDrawOnly(void) for (y=0;y<224;y++) PicoLine(y); } +int PicoGetStat(pstat_t which) +{ + switch (which) + { + case PS_PAL: return Pico.m.pal; + case PS_40_CELL: return Pico.video.reg[12]&1; + case PS_240_LINES: return Pico.m.pal && (Pico.video.reg[1]&8); + } + return 0; +} + // callback to output message from emu void (*PicoMessage)(const char *msg)=NULL;