notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
svp compiler direct calls
[picodrive.git]
/
Pico
/
Pico.c
diff --git
a/Pico/Pico.c
b/Pico/Pico.c
index
71add13
..
b07af08
100644
(file)
--- 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
\r
\r
PicoInitMCD();
\r
z80_init(); // init even if we aren't going to use it
\r
\r
PicoInitMCD();
\r
+ PicoSVPInit();
\r
\r
SRam.data=0;
\r
\r
\r
SRam.data=0;
\r
\r
@@
-256,6
+257,7
@@
static int CheckIdle(void)
static __inline void getSamples(int y)
\r
{
\r
#if SIMPLE_WRITE_SOUND
\r
static __inline void getSamples(int y)
\r
{
\r
#if SIMPLE_WRITE_SOUND
\r
+ if (y != 224) return;
\r
PsndRender(0, PsndLen);
\r
if (PicoWriteSound) PicoWriteSound(PsndLen);
\r
PsndClear();
\r
PsndRender(0, PsndLen);
\r
if (PicoWriteSound) PicoWriteSound(PsndLen);
\r
PsndClear();
\r
@@
-501,6
+503,17
@@
void PicoFrameDrawOnly(void)
for (y=0;y<224;y++) PicoLine(y);
\r
}
\r
\r
for (y=0;y<224;y++) PicoLine(y);
\r
}
\r
\r
+int PicoGetStat(pstat_t which)
\r
+{
\r
+ switch (which)
\r
+ {
\r
+ case PS_PAL: return Pico.m.pal;
\r
+ case PS_40_CELL: return Pico.video.reg[12]&1;
\r
+ case PS_240_LINES: return Pico.m.pal && (Pico.video.reg[1]&8);
\r
+ }
\r
+ return 0;
\r
+}
\r
+
\r
// callback to output message from emu
\r
void (*PicoMessage)(const char *msg)=NULL;
\r
\r
// callback to output message from emu
\r
void (*PicoMessage)(const char *msg)=NULL;
\r
\r