notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added zram clearing on reset for Psycho Pinball (does it happen on hw?)
[picodrive.git]
/
Pico
/
carthw
/
svp
/
svp.c
diff --git
a/Pico/carthw/svp/svp.c
b/Pico/carthw/svp/svp.c
index
c7b6551
..
0c7585a
100644
(file)
--- a/
Pico/carthw/svp/svp.c
+++ b/
Pico/carthw/svp/svp.c
@@
-13,7
+13,7
@@
#endif
svp_t *svp = NULL;
#endif
svp_t *svp = NULL;
-int PicoSVPCycles = 8
2
0; // cycles/line, just a guess
+int PicoSVPCycles = 8
5
0; // cycles/line, just a guess
static int svp_dyn_ready = 0;
/* save state stuff */
static int svp_dyn_ready = 0;
/* save state stuff */
@@
-38,17
+38,24
@@
static void PicoSVPReset(void)
memcpy(svp->iram_rom + 0x800, Pico.rom + 0x800, 0x20000 - 0x800);
ssp1601_reset(&svp->ssp1601);
memcpy(svp->iram_rom + 0x800, Pico.rom + 0x800, 0x20000 - 0x800);
ssp1601_reset(&svp->ssp1601);
- if ((PicoOpt&0x20000) && svp_dyn_ready)
+#ifndef PSP
+ if ((PicoOpt&POPT_EN_SVP_DRC) && svp_dyn_ready)
ssp1601_dyn_reset(&svp->ssp1601);
ssp1601_dyn_reset(&svp->ssp1601);
+#endif
}
static void PicoSVPLine(int count)
{
}
static void PicoSVPLine(int count)
{
- if ((PicoOpt&0x20000) && svp_dyn_ready)
+#ifndef PSP
+ if ((PicoOpt&POPT_EN_SVP_DRC) && svp_dyn_ready)
ssp1601_dyn_run(PicoSVPCycles * count);
else
ssp1601_dyn_run(PicoSVPCycles * count);
else
+#endif
+ {
ssp1601_run(PicoSVPCycles * count);
ssp1601_run(PicoSVPCycles * count);
+ svp_dyn_ready = 0; // just in case
+ }
// test mode
//if (Pico.m.frame_count == 13) PicoPad[0] |= 0xff;
// test mode
//if (Pico.m.frame_count == 13) PicoPad[0] |= 0xff;
@@
-124,10
+131,12
@@
void PicoSVPStartup(void)
// init SVP compiler
svp_dyn_ready = 0;
// init SVP compiler
svp_dyn_ready = 0;
- if (PicoOpt&0x20000) {
+#ifndef PSP
+ if (PicoOpt&POPT_EN_SVP_DRC) {
if (ssp1601_dyn_startup()) return;
svp_dyn_ready = 1;
}
if (ssp1601_dyn_startup()) return;
svp_dyn_ready = 1;
}
+#endif
// init ok, setup hooks..
PicoRead16Hook = PicoSVPRead16;
// init ok, setup hooks..
PicoRead16Hook = PicoSVPRead16;
@@
-143,6
+152,7
@@
void PicoSVPStartup(void)
svp_states[1].ptr = svp->dram;
svp_states[2].ptr = &svp->ssp1601;
carthw_chunks = svp_states;
svp_states[1].ptr = svp->dram;
svp_states[2].ptr = &svp->ssp1601;
carthw_chunks = svp_states;
+ PicoAHW |= PAHW_SVP;
}
}