aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/psxgpu/getode.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/psxgpu/getode.s
parente14a2a4cde7fa2518df2cb0ed7063962bd52a46e (diff)
downloadpsn00bsdk-84422eceb3ecaa325f814b306665e58b0c3be647.tar.gz
Added CdOpenDir(), CdReadDir() and CdCloseDir(). Fixed SpuKeyOn() bug and added cdbrowse example.
Diffstat (limited to 'libpsn00b/psxgpu/getode.s')
-rw-r--r--libpsn00b/psxgpu/getode.s20
1 files changed, 20 insertions, 0 deletions
diff --git a/libpsn00b/psxgpu/getode.s b/libpsn00b/psxgpu/getode.s
new file mode 100644
index 0000000..5dc1e70
--- /dev/null
+++ b/libpsn00b/psxgpu/getode.s
@@ -0,0 +1,20 @@
+.set noreorder
+
+.include "hwregs_a.h"
+
+.section .text
+
+
+.global GetODE
+.type GetODE, @function
+GetODE:
+ addiu $sp, -4
+ sw $ra, 0($sp)
+ jal ReadGPUstat
+ nop
+ srl $v0, 31
+ andi $v0, 1
+ lw $ra, 0($sp)
+ addiu $sp, 4
+ jr $ra
+ nop