X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2Fcarthw%2Fsvp%2Fsvp.c;h=54cd401e841c3cbb7f133a6aaf23883344319a49;hb=34e243f167685f792c52d559e8dbf7c958e35daa;hp=e76c7ce86501c302be4a9c9d7166983b182b8125;hpb=a6fb500bb2acf2f62a89f03129fb91d0a48ee036;p=picodrive.git diff --git a/Pico/carthw/svp/svp.c b/Pico/carthw/svp/svp.c index e76c7ce..54cd401 100644 --- a/Pico/carthw/svp/svp.c +++ b/Pico/carthw/svp/svp.c @@ -26,7 +26,7 @@ static carthw_state_chunk svp_states[] = { { CHUNK_IRAM, 0x800, NULL }, { CHUNK_DRAM, sizeof(svp->dram), NULL }, - { CHUNK_SSP, sizeof(svp->ssp1601), NULL }, + { CHUNK_SSP, sizeof(svp->ssp1601) - sizeof(svp->ssp1601.drc), NULL }, { 0, 0, NULL } }; @@ -44,11 +44,6 @@ static void PicoSVPReset(void) static void PicoSVPLine(int count) { - static int inited = 0; - if (!(svp->ssp1601.gr[SSP_PM0].h & 2) && !inited) return; - inited = 1; - - // ??? if (PicoOpt&0x20000) ssp1601_run(PicoSVPCycles * count); else @@ -116,6 +111,7 @@ void PicoSVPStartup(void) return; } + //PicoOpt |= 0x20000; Pico.rom = tmp; svp = (void *) ((char *)tmp + 0x200000); memset(svp, 0, sizeof(*svp));