From 3f43c466ca282ba14473d974659b5423c7067b08 Mon Sep 17 00:00:00 2001 From: spicyjpeg <88942473+spicyjpeg@users.noreply.github.com> Date: Mon, 7 Feb 2022 01:11:35 +0100 Subject: Rewrite psxapi with BIOS API stub generator script --- libpsn00b/psxapi/fs.s | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 libpsn00b/psxapi/fs.s (limited to 'libpsn00b/psxapi/fs.s') diff --git a/libpsn00b/psxapi/fs.s b/libpsn00b/psxapi/fs.s new file mode 100644 index 0000000..f225d64 --- /dev/null +++ b/libpsn00b/psxapi/fs.s @@ -0,0 +1,50 @@ +# PSn00bSDK BIOS API stubs +# (C) 2022 spicyjpeg - MPL licensed + +# This file has been generated automatically. Each function is placed in its +# own section to allow the linker to strip unused functions. + +.set noreorder + +## B0 table functions (5) + +.section .text.chdir +.global chdir +.type chdir, @function +chdir: + li $t2, 0xb0 + jr $t2 + li $t1, 0x40 + +.section .text.firstfile +.global firstfile +.type firstfile, @function +firstfile: + li $t2, 0xb0 + jr $t2 + li $t1, 0x42 + +.section .text.nextfile +.global nextfile +.type nextfile, @function +nextfile: + li $t2, 0xb0 + jr $t2 + li $t1, 0x43 + +.section .text.rename +.global rename +.type rename, @function +rename: + li $t2, 0xb0 + jr $t2 + li $t1, 0x44 + +.section .text.erase +.global erase +.type erase, @function +erase: + li $t2, 0xb0 + jr $t2 + li $t1, 0x45 + -- cgit v1.2.3