diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-07-05 02:34:11 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-07-05 02:34:11 +0200 |
| commit | beb76e4dd362374b8f42cd971d394bba1074cd8d (patch) | |
| tree | 3ea4cc342737afb9225c01160c92647ba66c78bd /libpsn00b/psxapi/fs.S | |
| parent | 5d9aa2d3dfc7d6e51c2eb942ab4cdbae5571a40a (diff) | |
Replace .include with #includefix-include
For some reason, both mipsel-unknown-elf-gcc 8.2.0 and mipsel-non-elf
15.1.0 were unable to resolve .include assembler directives.
As a workaround, it is still possible to use the preprocessor, and
therefore the usual #include preprocessor directive. However, this
requires the assembly files to use the uppercase .S file extension.
Diffstat (limited to 'libpsn00b/psxapi/fs.S')
| -rw-r--r-- | libpsn00b/psxapi/fs.S | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/libpsn00b/psxapi/fs.S b/libpsn00b/psxapi/fs.S new file mode 100644 index 0000000..8b6d57a --- /dev/null +++ b/libpsn00b/psxapi/fs.S @@ -0,0 +1,58 @@ +# 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 (6) + +.section .text.cd +.global cd +.type cd, @function +cd: + 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 + +.section .text.undelete +.global undelete +.type undelete, @function +undelete: + li $t2, 0xb0 + jr $t2 + li $t1, 0x46 + |
