psxbios: Support other syscalls
authorgameblabla <gameblabla@openmailbox.org>
Thu, 18 Jul 2019 00:29:49 +0000 (02:29 +0200)
committergameblabla <gameblabla@openmailbox.org>
Thu, 18 Jul 2019 00:29:49 +0000 (02:29 +0200)
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

index cd2fb0c..288e33b 100644 (file)
@@ -3196,6 +3196,9 @@ void psxBiosException() {
                                case 2: // ExitCritical - enable irq's
                                        psxRegs.CP0.n.Status |= 0x404; 
                                        break;
                                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;
 
                        }
                        pc0 = psxRegs.CP0.n.EPC + 4;