From a946d159bfc8e85d5ff2bcb08fc940830d5acbf4 Mon Sep 17 00:00:00 2001 From: gameblabla Date: Thu, 18 Jul 2019 02:29:49 +0200 Subject: [PATCH] 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. --- libpcsxcore/psxbios.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.5