aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/psxapi
diff options
context:
space:
mode:
authorJohn Wilbert M. Villamor <lameguy64@gmail.com>2019-11-22 09:11:12 +0800
committerJohn Wilbert M. Villamor <lameguy64@gmail.com>2019-11-22 09:11:12 +0800
commitea46d05aed0343c20d8fdfaa0e67d54d51e8e2a0 (patch)
tree43e2a53f4e5f7f55b075cfc9d6dc7a652a7b0837 /libpsn00b/psxapi
parentd80d92e13330d527ddb94420b19f9e21bf0e74eb (diff)
downloadpsn00bsdk-ea46d05aed0343c20d8fdfaa0e67d54d51e8e2a0.tar.gz
Added long awaited CD-ROM library and loads of fixes, see changelog for details
Diffstat (limited to 'libpsn00b/psxapi')
-rw-r--r--libpsn00b/psxapi/sys/adddummytty.s10
-rw-r--r--libpsn00b/psxapi/sys/getrcnt.s10
-rw-r--r--libpsn00b/psxapi/sys/resetrcnt.s10
-rw-r--r--libpsn00b/psxapi/sys/setrcnt.s10
-rw-r--r--libpsn00b/psxapi/sys/startrcnt.s10
-rw-r--r--libpsn00b/psxapi/sys/stoprcnt.s10
6 files changed, 60 insertions, 0 deletions
diff --git a/libpsn00b/psxapi/sys/adddummytty.s b/libpsn00b/psxapi/sys/adddummytty.s
new file mode 100644
index 0000000..a569d38
--- /dev/null
+++ b/libpsn00b/psxapi/sys/adddummytty.s
@@ -0,0 +1,10 @@
+.set noreorder
+
+.section .text
+
+.global AddDummyTty
+.type AddDummyTty, @function
+AddDummyTty:
+ addiu $t2, $0, 0xa0
+ jr $t2
+ addiu $t1, $0, 0x99
diff --git a/libpsn00b/psxapi/sys/getrcnt.s b/libpsn00b/psxapi/sys/getrcnt.s
new file mode 100644
index 0000000..0b035ed
--- /dev/null
+++ b/libpsn00b/psxapi/sys/getrcnt.s
@@ -0,0 +1,10 @@
+.set noreorder
+
+.section .text
+
+.global GetRCnt
+.type GetRCnt, @function
+GetRCnt:
+ addiu $t2, $0, 0xb0
+ jr $t2
+ addiu $t1, $0, 0x03 \ No newline at end of file
diff --git a/libpsn00b/psxapi/sys/resetrcnt.s b/libpsn00b/psxapi/sys/resetrcnt.s
new file mode 100644
index 0000000..5811625
--- /dev/null
+++ b/libpsn00b/psxapi/sys/resetrcnt.s
@@ -0,0 +1,10 @@
+.set noreorder
+
+.section .text
+
+.global ResetRCnt
+.type ResetRCnt, @function
+ResetRCnt:
+ addiu $t2, $0, 0xb0
+ jr $t2
+ addiu $t1, $0, 0x06 \ No newline at end of file
diff --git a/libpsn00b/psxapi/sys/setrcnt.s b/libpsn00b/psxapi/sys/setrcnt.s
new file mode 100644
index 0000000..ec6180a
--- /dev/null
+++ b/libpsn00b/psxapi/sys/setrcnt.s
@@ -0,0 +1,10 @@
+.set noreorder
+
+.section .text
+
+.global SetRCnt
+.type SetRCnt, @function
+SetRCnt:
+ addiu $t2, $0, 0xb0
+ jr $t2
+ addiu $t1, $0, 0x02 \ No newline at end of file
diff --git a/libpsn00b/psxapi/sys/startrcnt.s b/libpsn00b/psxapi/sys/startrcnt.s
new file mode 100644
index 0000000..0fd5c33
--- /dev/null
+++ b/libpsn00b/psxapi/sys/startrcnt.s
@@ -0,0 +1,10 @@
+.set noreorder
+
+.section .text
+
+.global StartRCnt
+.type StartRCnt, @function
+StartRCnt:
+ addiu $t2, $0, 0xb0
+ jr $t2
+ addiu $t1, $0, 0x04 \ No newline at end of file
diff --git a/libpsn00b/psxapi/sys/stoprcnt.s b/libpsn00b/psxapi/sys/stoprcnt.s
new file mode 100644
index 0000000..4af94da
--- /dev/null
+++ b/libpsn00b/psxapi/sys/stoprcnt.s
@@ -0,0 +1,10 @@
+.set noreorder
+
+.section .text
+
+.global StopRCnt
+.type StopRCnt, @function
+StopRCnt:
+ addiu $t2, $0, 0xb0
+ jr $t2
+ addiu $t1, $0, 0x05 \ No newline at end of file