diff options
Diffstat (limited to 'libpsn00b/psxapi/drivers.s')
| -rw-r--r-- | libpsn00b/psxapi/drivers.s | 164 |
1 files changed, 164 insertions, 0 deletions
diff --git a/libpsn00b/psxapi/drivers.s b/libpsn00b/psxapi/drivers.s new file mode 100644 index 0000000..1cf5050 --- /dev/null +++ b/libpsn00b/psxapi/drivers.s @@ -0,0 +1,164 @@ +# 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 + +## A0 table functions (7) + +.section .text._bu_init +.global _bu_init +.type _bu_init, @function +_bu_init: + li $t2, 0xa0 + jr $t2 + li $t1, 0x55 + +.section .text._96_init +.global _96_init +.type _96_init, @function +_96_init: + li $t2, 0xa0 + jr $t2 + li $t1, 0x71 + +.section .text._96_remove +.global _96_remove +.type _96_remove, @function +_96_remove: + li $t2, 0xa0 + jr $t2 + li $t1, 0x72 + +.section .text.AddDummyTty +.global AddDummyTty +.type AddDummyTty, @function +AddDummyTty: + li $t2, 0xa0 + jr $t2 + li $t1, 0x99 + +.section .text._card_info +.global _card_info +.type _card_info, @function +_card_info: + li $t2, 0xa0 + jr $t2 + li $t1, 0xab + +.section .text._card_load +.global _card_load +.type _card_load, @function +_card_load: + li $t2, 0xa0 + jr $t2 + li $t1, 0xac + +.section .text._card_clear +.global _card_clear +.type _card_clear, @function +_card_clear: + li $t2, 0xa0 + jr $t2 + li $t1, 0xaf + +## B0 table functions (12) + +.section .text.AddDev +.global AddDev +.type AddDev, @function +AddDev: + li $t2, 0xb0 + jr $t2 + li $t1, 0x47 + +.section .text.DelDev +.global DelDev +.type DelDev, @function +DelDev: + li $t2, 0xb0 + jr $t2 + li $t1, 0x48 + +.section .text.ListDev +.global ListDev +.type ListDev, @function +ListDev: + li $t2, 0xb0 + jr $t2 + li $t1, 0x49 + +.section .text.InitCard +.global InitCard +.type InitCard, @function +InitCard: + li $t2, 0xb0 + jr $t2 + li $t1, 0x4a + +.section .text.StartCard +.global StartCard +.type StartCard, @function +StartCard: + li $t2, 0xb0 + jr $t2 + li $t1, 0x4b + +.section .text.StopCard +.global StopCard +.type StopCard, @function +StopCard: + li $t2, 0xb0 + jr $t2 + li $t1, 0x4c + +.section .text._card_write +.global _card_write +.type _card_write, @function +_card_write: + li $t2, 0xb0 + jr $t2 + li $t1, 0x4e + +.section .text._card_read +.global _card_read +.type _card_read, @function +_card_read: + li $t2, 0xb0 + jr $t2 + li $t1, 0x4f + +.section .text._new_card +.global _new_card +.type _new_card, @function +_new_card: + li $t2, 0xb0 + jr $t2 + li $t1, 0x50 + +.section .text._card_chan +.global _card_chan +.type _card_chan, @function +_card_chan: + li $t2, 0xb0 + jr $t2 + li $t1, 0x58 + +.section .text._card_status +.global _card_status +.type _card_status, @function +_card_status: + li $t2, 0xb0 + jr $t2 + li $t1, 0x5c + +.section .text._card_wait +.global _card_wait +.type _card_wait, @function +_card_wait: + li $t2, 0xb0 + jr $t2 + li $t1, 0x5d + |
