aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/psxapi/sys
diff options
context:
space:
mode:
authorJohn Wilbert M. Villamor <lameguy64@gmail.com>2019-04-06 10:11:07 +0800
committerJohn Wilbert M. Villamor <lameguy64@gmail.com>2019-04-06 10:11:07 +0800
commitf3e040230772f978540a71aea43dfde200992922 (patch)
treebd8ca31b72dd01e24980b073854e263589530f56 /libpsn00b/psxapi/sys
downloadpsn00bsdk-f3e040230772f978540a71aea43dfde200992922.tar.gz
First commit
Diffstat (limited to 'libpsn00b/psxapi/sys')
-rw-r--r--libpsn00b/psxapi/sys/adddev.s10
-rw-r--r--libpsn00b/psxapi/sys/b_initheap.s10
-rw-r--r--libpsn00b/psxapi/sys/changeclearpad.s10
-rw-r--r--libpsn00b/psxapi/sys/changeclearrcnt.s10
-rw-r--r--libpsn00b/psxapi/sys/deldev.s10
-rw-r--r--libpsn00b/psxapi/sys/disableevent.s10
-rw-r--r--libpsn00b/psxapi/sys/enableevent.s10
-rw-r--r--libpsn00b/psxapi/sys/entercriticalsection.s11
-rw-r--r--libpsn00b/psxapi/sys/exitcriticalsection.s11
-rw-r--r--libpsn00b/psxapi/sys/initcard.s10
-rw-r--r--libpsn00b/psxapi/sys/initpad.s11
-rw-r--r--libpsn00b/psxapi/sys/listdev.s10
-rw-r--r--libpsn00b/psxapi/sys/openevent.s10
-rw-r--r--libpsn00b/psxapi/sys/setcustomexitfromexception.s10
-rw-r--r--libpsn00b/psxapi/sys/setdefaultexitfromexception.s10
-rw-r--r--libpsn00b/psxapi/sys/startpad.s10
-rw-r--r--libpsn00b/psxapi/sys/stoppad.s10
-rw-r--r--libpsn00b/psxapi/sys/sysenqintrp.s10
18 files changed, 183 insertions, 0 deletions
diff --git a/libpsn00b/psxapi/sys/adddev.s b/libpsn00b/psxapi/sys/adddev.s
new file mode 100644
index 0000000..7fa717d
--- /dev/null
+++ b/libpsn00b/psxapi/sys/adddev.s
@@ -0,0 +1,10 @@
+.set noreorder
+
+.section .text
+
+.global AddDev
+.type AddDev, @function
+AddDev:
+ addiu $t2, $0, 0xb0
+ jr $t2
+ addiu $t1, $0, 0x47 \ No newline at end of file
diff --git a/libpsn00b/psxapi/sys/b_initheap.s b/libpsn00b/psxapi/sys/b_initheap.s
new file mode 100644
index 0000000..7411dd6
--- /dev/null
+++ b/libpsn00b/psxapi/sys/b_initheap.s
@@ -0,0 +1,10 @@
+.set noreorder
+.section .text
+
+.global b_InitHeap
+.type b_InitHeap, @function
+b_InitHeap:
+ addiu $t2, $0, 0xa0
+ jr $t2
+ addiu $t1, $0, 0x39
+ \ No newline at end of file
diff --git a/libpsn00b/psxapi/sys/changeclearpad.s b/libpsn00b/psxapi/sys/changeclearpad.s
new file mode 100644
index 0000000..509b03f
--- /dev/null
+++ b/libpsn00b/psxapi/sys/changeclearpad.s
@@ -0,0 +1,10 @@
+.set noreorder
+.section .text
+
+.global ChangeClearPAD
+.type ChangeClearPAD, @function
+ChangeClearPAD:
+ addiu $t2, $0 , 0xb0
+ jr $t2
+ addiu $t1, $0 , 0x5b
+ \ No newline at end of file
diff --git a/libpsn00b/psxapi/sys/changeclearrcnt.s b/libpsn00b/psxapi/sys/changeclearrcnt.s
new file mode 100644
index 0000000..a65676d
--- /dev/null
+++ b/libpsn00b/psxapi/sys/changeclearrcnt.s
@@ -0,0 +1,10 @@
+.set noreorder
+.section .text
+
+.global ChangeClearRCnt
+.type ChangeClearRCnt, @function
+ChangeClearRCnt:
+ addiu $t2, $0 , 0xc0
+ jr $t2
+ addiu $t1, $0 , 0x0a
+ \ No newline at end of file
diff --git a/libpsn00b/psxapi/sys/deldev.s b/libpsn00b/psxapi/sys/deldev.s
new file mode 100644
index 0000000..185cd32
--- /dev/null
+++ b/libpsn00b/psxapi/sys/deldev.s
@@ -0,0 +1,10 @@
+.set noreorder
+
+.section .text
+
+.global DelDev
+.type DelDev, @function
+DelDev:
+ addiu $t2, $0, 0xb0
+ jr $t2
+ addiu $t1, $0, 0x48 \ No newline at end of file
diff --git a/libpsn00b/psxapi/sys/disableevent.s b/libpsn00b/psxapi/sys/disableevent.s
new file mode 100644
index 0000000..fb60549
--- /dev/null
+++ b/libpsn00b/psxapi/sys/disableevent.s
@@ -0,0 +1,10 @@
+.set noreorder
+.section .text
+
+.global DisableEvent
+.type DisableEvent, @function
+DisableEvent:
+ addiu $t2, $0, 0xb0
+ jr $t2
+ addiu $t1, $0, 0x0d
+ \ No newline at end of file
diff --git a/libpsn00b/psxapi/sys/enableevent.s b/libpsn00b/psxapi/sys/enableevent.s
new file mode 100644
index 0000000..a95e1fc
--- /dev/null
+++ b/libpsn00b/psxapi/sys/enableevent.s
@@ -0,0 +1,10 @@
+.set noreorder
+.section .text
+
+.global EnableEvent
+.type EnableEvent, @function
+EnableEvent:
+ addiu $t2, $0, 0xb0
+ jr $t2
+ addiu $t1, $0, 0x0c
+ \ No newline at end of file
diff --git a/libpsn00b/psxapi/sys/entercriticalsection.s b/libpsn00b/psxapi/sys/entercriticalsection.s
new file mode 100644
index 0000000..ce9a368
--- /dev/null
+++ b/libpsn00b/psxapi/sys/entercriticalsection.s
@@ -0,0 +1,11 @@
+.set noreorder
+.section .text
+
+.global EnterCriticalSection
+.type EnterCriticalSection, @function
+EnterCriticalSection:
+ addiu $a0, $0, 1
+ syscall 0
+ jr $ra
+ nop
+ \ No newline at end of file
diff --git a/libpsn00b/psxapi/sys/exitcriticalsection.s b/libpsn00b/psxapi/sys/exitcriticalsection.s
new file mode 100644
index 0000000..e2ee060
--- /dev/null
+++ b/libpsn00b/psxapi/sys/exitcriticalsection.s
@@ -0,0 +1,11 @@
+.set noreorder
+.section .text
+
+.global ExitCriticalSection
+.type ExitCriticalSection, @function
+ExitCriticalSection:
+ addiu $a0, $0, 2
+ syscall 0
+ jr $ra
+ nop
+ \ No newline at end of file
diff --git a/libpsn00b/psxapi/sys/initcard.s b/libpsn00b/psxapi/sys/initcard.s
new file mode 100644
index 0000000..e589592
--- /dev/null
+++ b/libpsn00b/psxapi/sys/initcard.s
@@ -0,0 +1,10 @@
+.set noreorder
+.section .text
+
+.global InitCard
+.type InitCard, @function
+InitCard:
+ addiu $t2, $0, 0xb0
+ jr $t2
+ addiu $t1, $0, 0x4a
+ \ No newline at end of file
diff --git a/libpsn00b/psxapi/sys/initpad.s b/libpsn00b/psxapi/sys/initpad.s
new file mode 100644
index 0000000..b0f1b6f
--- /dev/null
+++ b/libpsn00b/psxapi/sys/initpad.s
@@ -0,0 +1,11 @@
+.set noreorder
+.section .text
+
+.include "hwregs_a.h"
+
+.global InitPad
+.type InitPad, @function
+InitPad:
+ addiu $t2, $0, 0xb0
+ jr $t2
+ addiu $t1, $0, 0x12
diff --git a/libpsn00b/psxapi/sys/listdev.s b/libpsn00b/psxapi/sys/listdev.s
new file mode 100644
index 0000000..fa3afec
--- /dev/null
+++ b/libpsn00b/psxapi/sys/listdev.s
@@ -0,0 +1,10 @@
+.set noreorder
+.section .text
+
+.global ListDev
+.type ListDev, @function
+ListDev:
+ addiu $t2, $0 , 0xb0
+ jr $t2
+ addiu $t1, $0 , 0x49
+ \ No newline at end of file
diff --git a/libpsn00b/psxapi/sys/openevent.s b/libpsn00b/psxapi/sys/openevent.s
new file mode 100644
index 0000000..9be0a3e
--- /dev/null
+++ b/libpsn00b/psxapi/sys/openevent.s
@@ -0,0 +1,10 @@
+.set noreorder
+.section .text
+
+.global OpenEvent
+.type OpenEvent, @function
+OpenEvent:
+ addiu $t2, $0, 0xb0
+ jr $t2
+ addiu $t1, $0, 0x08
+ \ No newline at end of file
diff --git a/libpsn00b/psxapi/sys/setcustomexitfromexception.s b/libpsn00b/psxapi/sys/setcustomexitfromexception.s
new file mode 100644
index 0000000..bcba057
--- /dev/null
+++ b/libpsn00b/psxapi/sys/setcustomexitfromexception.s
@@ -0,0 +1,10 @@
+.set noreorder
+.section .text
+
+.global SetCustomExitFromException
+.type SetCustomExitFromException, @function
+SetCustomExitFromException:
+ addiu $t2, $0, 0xb0
+ jr $t2
+ addiu $t1, $0, 0x19
+ \ No newline at end of file
diff --git a/libpsn00b/psxapi/sys/setdefaultexitfromexception.s b/libpsn00b/psxapi/sys/setdefaultexitfromexception.s
new file mode 100644
index 0000000..baaf591
--- /dev/null
+++ b/libpsn00b/psxapi/sys/setdefaultexitfromexception.s
@@ -0,0 +1,10 @@
+.set noreorder
+.section .text
+
+.global SetDefaultExitFromException
+.type SetDefaultExitFromException, @function
+SetDefaultExitFromException:
+ addiu $t2, $0, 0xb0
+ jr $t2
+ addiu $t1, $0, 0x18
+
diff --git a/libpsn00b/psxapi/sys/startpad.s b/libpsn00b/psxapi/sys/startpad.s
new file mode 100644
index 0000000..b15b0c0
--- /dev/null
+++ b/libpsn00b/psxapi/sys/startpad.s
@@ -0,0 +1,10 @@
+.set noreorder
+.section .text
+
+.global StartPad
+.type StartPad, @function
+StartPad:
+ addiu $t2, $0, 0xb0
+ jr $t2
+ addiu $t1, $0, 0x13
+ \ No newline at end of file
diff --git a/libpsn00b/psxapi/sys/stoppad.s b/libpsn00b/psxapi/sys/stoppad.s
new file mode 100644
index 0000000..562ac0f
--- /dev/null
+++ b/libpsn00b/psxapi/sys/stoppad.s
@@ -0,0 +1,10 @@
+.set noreorder
+.section .text
+
+.global StopPad
+.type StopPad, @function
+StartPad:
+ addiu $t2, $0, 0xb0
+ jr $t2
+ addiu $t1, $0, 0x14
+ \ No newline at end of file
diff --git a/libpsn00b/psxapi/sys/sysenqintrp.s b/libpsn00b/psxapi/sys/sysenqintrp.s
new file mode 100644
index 0000000..b1efe65
--- /dev/null
+++ b/libpsn00b/psxapi/sys/sysenqintrp.s
@@ -0,0 +1,10 @@
+.set noreorder
+.section .text
+
+.global SysEnqIntRP
+.type SysEnqIntRP, @function
+SysEnqIntRP:
+ addiu $t2, $0, 0xc0
+ jr $t2
+ addiu $t1, $0, 0x02
+ \ No newline at end of file