aboutsummaryrefslogtreecommitdiff
path: root/examples/cartrom/bios.inc
diff options
context:
space:
mode:
authorlameguy64 <lameguy64@gmail.com>2019-05-23 22:24:56 +0800
committerlameguy64 <lameguy64@gmail.com>2019-05-23 22:24:56 +0800
commit3ffebff2aad2ca438cf76db51fb3459c5639cd67 (patch)
treea234fc6158d3c09904c4c1fb2feee09afb479a4c /examples/cartrom/bios.inc
parente70cd149f41ea71f9ca9ee86c03d1e59005dad2a (diff)
downloadpsn00bsdk-3ffebff2aad2ca438cf76db51fb3459c5639cd67.tar.gz
Added BIOS Controller, BIOS CD, 2 new examples and custom exit handler in the works
Diffstat (limited to 'examples/cartrom/bios.inc')
-rw-r--r--examples/cartrom/bios.inc67
1 files changed, 67 insertions, 0 deletions
diff --git a/examples/cartrom/bios.inc b/examples/cartrom/bios.inc
new file mode 100644
index 0000000..1c0201d
--- /dev/null
+++ b/examples/cartrom/bios.inc
@@ -0,0 +1,67 @@
+printf:
+ addiu $t2, $0, 0xA0
+ jr $t2
+ addiu $t1, $0, 0x3F
+
+atoi:
+ addiu $t2, $0, 0xA0
+ jr $t2
+ addiu $t1, $0, 0x10
+
+toupper:
+ addiu $t2, $0, 0xA0
+ jr $t2
+ addiu $t1, $0, 0x25
+
+open:
+ addiu $t2, $0, 0xB0
+ jr $t2
+ addiu $t1, $0, 0x32
+
+read:
+ addiu $t2, $0, 0xB0
+ jr $t2
+ addiu $t1, $0, 0x34
+
+close:
+ addiu $t2, $0, 0xB0
+ jr $t2
+ addiu $t1, $0, 0x36
+
+_96_init:
+ addiu $t2, $0, 0xA0
+ jr $t2
+ addiu $t1, $0, 0x71
+
+LoadExe:
+ addiu $t2, $0, 0xA0
+ jr $t2
+ addiu $t1, $0, 0x42
+
+DoExec:
+ addiu $t2, $0, 0xA0
+ jr $t2
+ addiu $t1, $0, 0x43
+
+SetConf:
+ addiu $t2, $0, 0xA0
+ jr $t2
+ addiu $t1, $0, 0x9C
+
+SetDefaultExitFromException:
+ addiu $t2, $0, 0xB0
+ jr $t2
+ addiu $t1, $0, 0x18
+
+EnterCriticalSection:
+ addiu $a0, $0, 1
+ syscall 0
+ jr $ra
+ nop
+
+ExitCriticalSection:
+ addiu $a0, $0, 2
+ syscall 0
+ jr $ra
+ nop
+ \ No newline at end of file