summaryrefslogtreecommitdiff
path: root/arm9/lib/syscall/_svc_mw.s
blob: d449ee5865204a1fa7eeda81f92e100b45afa6d8 (plain)
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
115
116
117
118
119
120
121
	.include "asm/macros.inc"

	.text
	; NITRO SYSCALL LIBRARY
	; VERSION 3.2

	; Secure area
	.space 0x800

	.global SVC_SoftReset
	.thumb
SVC_SoftReset:
	swi 0
	bx lr

	.global SVC_WaitByLoop
	.thumb
SVC_WaitByLoop:
	swi 3
	bx lr

	.global SVC_WaitIntr
	.thumb
SVC_WaitIntr:
	mov r2, #0
	swi 4
	bx lr

	.global SVC_WaitVBlankIntr
	.thumb
SVC_WaitVBlankIntr:
	mov r2, #0
	swi 5
	bx lr

	.global SVC_Halt
	.thumb
SVC_Halt:
	swi 6
	bx lr

	.global SVC_Div
	.thumb
SVC_Div:
	swi 9
	bx lr

	.global SVC_DivRem
	.thumb
SVC_DivRem:
	swi 9
	add r0, r1, #0
	bx lr

	.global SVC_CpuSet
	.thumb
SVC_CpuSet:
	swi 11
	bx lr

	.global SVC_CpuSetFast
	.thumb
SVC_CpuSetFast:
	swi 12
	bx lr

	.global SVC_Sqrt
	.thumb
SVC_Sqrt:
	swi 13
	bx lr

	.global SVC_GetCRC16
	.thumb
SVC_GetCRC16:
	swi 14
	bx lr

	.global IsMmemExpanded
	.thumb
IsMmemExpanded:
	swi 15
	bx lr

	.global SVC_UnpackBits
	.thumb
SVC_UnpackBits:
	swi 16
	bx lr

	.global SVC_UncompressLZ8
	.thumb
SVC_UncompressLZ8:
	swi 17
	bx lr

	.global SVC_UncompressLZ16FromDevice
	.thumb
SVC_UncompressLZ16FromDevice:
	swi 18
	bx lr

	.global SVC_UncompressHuffmanFromDevice
	.thumb
SVC_UncompressHuffmanFromDevice:
	swi 19
	bx lr

	.global SVC_UncompressRL8
	.thumb
SVC_UncompressRL8:
	swi 20
	bx lr

	.global SVC_UncompressRL16FromDevice
	.thumb
SVC_UncompressRL16FromDevice:
	swi 21
	bx lr

	.balign 4, 0 ; Don't pad with nop