psxbios : Implement stub for wait_card.
authorgameblabla <gameblabla@openmailbox.org>
Sat, 20 Jul 2019 23:28:56 +0000 (01:28 +0200)
committergameblabla <gameblabla@openmailbox.org>
Sat, 20 Jul 2019 23:28:56 +0000 (01:28 +0200)
Pretty much identical to get_card_status except it's supposed
to wait until a non-busy state occurs.

libpcsxcore/psxbios.c

index 8b9c99a..4c953df 100644 (file)
@@ -2599,6 +2599,15 @@ void psxBios__card_status() { // 5c
        pc0 = ra;
 }
 
+void psxBios__card_wait() { // 5d
+#ifdef PSXBIOS_LOG
+       PSXBIOS_LOG("psxBios_%s: %x\n", biosB0n[0x5d], a0);
+#endif
+
+       v0 = 1;
+       pc0 = ra;
+}
+
 /* System calls C0 */
 
 /*
@@ -2953,7 +2962,7 @@ void psxBiosInit() {
        //biosB0[0x5a] = psxBios_sys_b0_5a;
        biosB0[0x5b] = psxBios_ChangeClearPad;
        biosB0[0x5c] = psxBios__card_status;
-       //biosB0[0x5d] = psxBios__card_wait;
+       biosB0[0x5d] = psxBios__card_wait;
 //*******************C0 CALLS****************************
        //biosC0[0x00] = psxBios_InitRCnt;
        //biosC0[0x01] = psxBios_InitException;