1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
# 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 (13)
.section .text.open
.global open
.type open, @function
open:
li $t2, 0xa0
jr $t2
li $t1, 0x00
.section .text.seek
.global seek
.type seek, @function
seek:
li $t2, 0xa0
jr $t2
li $t1, 0x01
.section .text.read
.global read
.type read, @function
read:
li $t2, 0xa0
jr $t2
li $t1, 0x02
.section .text.write
.global write
.type write, @function
write:
li $t2, 0xa0
jr $t2
li $t1, 0x03
.section .text.close
.global close
.type close, @function
close:
li $t2, 0xa0
jr $t2
li $t1, 0x04
.section .text.ioctl
.global ioctl
.type ioctl, @function
ioctl:
li $t2, 0xa0
jr $t2
li $t1, 0x05
.section .text.getc
.global getc
.type getc, @function
getc:
li $t2, 0xa0
jr $t2
li $t1, 0x08
.section .text.putc
.global putc
.type putc, @function
putc:
li $t2, 0xa0
jr $t2
li $t1, 0x09
.section .text.getchar
.global getchar
.type getchar, @function
getchar:
li $t2, 0xa0
jr $t2
li $t1, 0x3b
.section .text.putchar
.global putchar
.type putchar, @function
putchar:
li $t2, 0xa0
jr $t2
li $t1, 0x3c
.section .text.gets
.global gets
.type gets, @function
gets:
li $t2, 0xa0
jr $t2
li $t1, 0x3d
.section .text.puts
.global puts
.type puts, @function
puts:
li $t2, 0xa0
jr $t2
li $t1, 0x3e
.section .text.printf
.global printf
.type printf, @function
printf:
li $t2, 0xa0
jr $t2
li $t1, 0x3f
|