diff options
author | gameblabla | 2019-07-21 01:28:56 +0200 |
---|---|---|
committer | gameblabla | 2019-07-21 01:28:56 +0200 |
commit | 5f652aa973201284e3da8cbea5bd0f1f83b73d19 (patch) | |
tree | bfdc82362498a762c46abfd0f960c92495b71f49 /libpcsxcore/psxbios.c | |
parent | 44e9fa8b2308539ad19fb948d64e2339adb7835a (diff) | |
download | pcsx_rearmed-5f652aa973201284e3da8cbea5bd0f1f83b73d19.tar.gz pcsx_rearmed-5f652aa973201284e3da8cbea5bd0f1f83b73d19.tar.bz2 pcsx_rearmed-5f652aa973201284e3da8cbea5bd0f1f83b73d19.zip |
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.
Diffstat (limited to 'libpcsxcore/psxbios.c')
-rw-r--r-- | libpcsxcore/psxbios.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libpcsxcore/psxbios.c b/libpcsxcore/psxbios.c index 8b9c99a..4c953df 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; |