aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/psxcd/psxcd_asm.s
diff options
context:
space:
mode:
authorJohn Wilbert M. Villamor <lameguy64@gmail.com>2020-02-28 11:41:30 +0800
committerJohn Wilbert M. Villamor <lameguy64@gmail.com>2020-02-28 11:41:30 +0800
commit84422eceb3ecaa325f814b306665e58b0c3be647 (patch)
tree40abe71be412ee2845a66d46fe1146a073c04c52 /libpsn00b/psxcd/psxcd_asm.s
parente14a2a4cde7fa2518df2cb0ed7063962bd52a46e (diff)
downloadpsn00bsdk-84422eceb3ecaa325f814b306665e58b0c3be647.tar.gz
Added CdOpenDir(), CdReadDir() and CdCloseDir(). Fixed SpuKeyOn() bug and added cdbrowse example.
Diffstat (limited to 'libpsn00b/psxcd/psxcd_asm.s')
-rw-r--r--libpsn00b/psxcd/psxcd_asm.s11
1 files changed, 11 insertions, 0 deletions
diff --git a/libpsn00b/psxcd/psxcd_asm.s b/libpsn00b/psxcd/psxcd_asm.s
index 7fe1c1d..0bfe5ca 100644
--- a/libpsn00b/psxcd/psxcd_asm.s
+++ b/libpsn00b/psxcd/psxcd_asm.s
@@ -371,6 +371,17 @@ _cd_fetch_result:
.Lwrite_status:
+ andi $v1, $v0, 0x10
+
+ beqz $v1, .Lno_disc_change
+ nop
+
+ la $v1, _cd_media_changed
+ addiu $a1, $0 , 1
+ sw $a1, 0($v1)
+
+.Lno_disc_change:
+
sb $v0, 0($a0)
.Lskip_status: