From: gameblabla Date: Thu, 18 Jul 2019 00:29:49 +0000 (+0200) Subject: psxbios: Support other syscalls X-Git-Tag: r23~156^2~21 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=commitdiff_plain;h=a946d159bfc8e85d5ff2bcb08fc940830d5acbf4 psxbios: Support other syscalls Since they don't do anything however, let's just add a default and break; instead. Interestingly, trying to implement SYS(04h+ can actually crash the HLE bios. Nocash documentation said that it should crash it but due to other reasons, it doesn't and returns to main program instead. --- diff --git a/libpcsxcore/psxbios.c b/libpcsxcore/psxbios.c index cd2fb0c5..288e33b3 100644 --- a/libpcsxcore/psxbios.c +++ b/libpcsxcore/psxbios.c @@ -3196,6 +3196,9 @@ void psxBiosException() { case 2: // ExitCritical - enable irq's psxRegs.CP0.n.Status |= 0x404; break; + /* Normally this should cover SYS(00h, SYS(04h but they don't do anything relevant so... */ + default: + break; } pc0 = psxRegs.CP0.n.EPC + 4;