From: gameblabla Date: Sat, 20 Jul 2019 23:28:56 +0000 (+0200) Subject: psxbios : Implement stub for wait_card. X-Git-Tag: r23~156^2~12 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f652aa973201284e3da8cbea5bd0f1f83b73d19;p=pcsx_rearmed.git psxbios : Implement stub for wait_card. Pretty much identical to get_card_status except it's supposed to wait until a non-busy state occurs. --- diff --git a/libpcsxcore/psxbios.c b/libpcsxcore/psxbios.c index 8b9c99aa..4c953df0 100644 --- a/libpcsxcore/psxbios.c +++ b/libpcsxcore/psxbios.c @@ -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;