X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2Fcarthw%2Fsvp%2Fssp16.c;fp=Pico%2Fcarthw%2Fsvp%2Fssp16.c;h=e6127453cf31cbf13d3469fd3750638b01b70fa7;hb=94fc546caae61453b7a703d75ecf0bc677756b1f;hp=d89e6adcf4f5aaf04b47a977c87a60740265f4d7;hpb=16ebbe9eaadd7c327d6f1fc32bd7df75e0440b99;p=picodrive.git diff --git a/Pico/carthw/svp/ssp16.c b/Pico/carthw/svp/ssp16.c index d89e6ad..e612745 100644 --- a/Pico/carthw/svp/ssp16.c +++ b/Pico/carthw/svp/ssp16.c @@ -653,10 +653,11 @@ static u32 read_PMC(void) // elprintf(EL_ANOMALY|EL_SVP, "prev PMC not used @ %04x", GET_PPC_OFFS()); ssp->emu_status |= SSP_PMC_SET; ssp->emu_status &= ~SSP_PMC_HAVE_ADDR; + return ((rPMC.h << 4) & 0xfff0) | ((rPMC.h >> 4) & 0xf); } else { ssp->emu_status |= SSP_PMC_HAVE_ADDR; + return rPMC.h; } - return rPMC.h; } static void write_PMC(u32 d)