summaryrefslogtreecommitdiff
path: root/arm9/lib/syscall/_svc_mw.s
blob: c1e36b4b7e4cdb26c164501a338381bd95625d4f (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

	non_word_aligned_thumb_func_start SVC_SoftReset
SVC_SoftReset:
	swi 0
	bx lr
	thumb_func_end SVC_SoftReset

	non_word_aligned_thumb_func_start SVC_WaitByLoop
SVC_WaitByLoop:
	swi 3
	bx lr
	thumb_func_end SVC_WaitByLoop

	non_word_aligned_thumb_func_start SVC_WaitIntr
SVC_WaitIntr:
	mov r2, #0
	swi 4
	bx lr
	thumb_func_end SVC_WaitIntr

	non_word_aligned_thumb_func_start SVC_WaitVBlankIntr
SVC_WaitVBlankIntr:
	mov r2, #0
	swi 5
	bx lr
	thumb_func_end SVC_WaitVBlankIntr

	non_word_aligned_thumb_func_start SVC_Halt
SVC_Halt:
	swi 6
	bx lr
	thumb_func_end SVC_Halt

	non_word_aligned_thumb_func_start SVC_Div
SVC_Div:
	swi 9
	bx lr
	thumb_func_end SVC_Div

	non_word_aligned_thumb_func_start SVC_DimRem
SVC_DivRem:
	swi 9
	add r0, r1, #0
	bx lr
	thumb_func_end SVC_DivRem

	non_word_aligned_thumb_func_start SVC_CpuSet
SVC_CpuSet:
	swi 11
	bx lr
	thumb_func_end SVC_CpuSet

	non_word_aligned_thumb_func_start SVC_CpuFastSet
SVC_CpuFastSet:
	swi 12
	bx lr
	thumb_func_end SVC_CpuFastSet

	non_word_aligned_thumb_func_start SVC_Sqrt
SVC_Sqrt:
	swi 13
	bx lr
	thumb_func_end SVC_Sqrt

	non_word_aligned_thumb_func_start SVC_GetCRC16
SVC_GetCRC16:
	swi 14
	bx lr
	thumb_func_end SVC_GetCRC16

	non_word_aligned_thumb_func_start IsMemExpanded
IsMemExpanded:
	swi 15
	bx lr
	thumb_func_end IsMemExpanded

	non_word_aligned_thumb_func_start SVC_UnpackBits
SVC_UnpackBits:
	swi 16
	bx lr
	thumb_func_end SVC_UnpackBits

	non_word_aligned_thumb_func_start SVC_UncompressLZ8
SVC_UncompressLZ8:
	swi 17
	bx lr
	thumb_func_end SVC_UncompressLZ8

	non_word_aligned_thumb_func_start SVC_UncompressLZ16FromDevice
SVC_UncompressLZ16FromDevice:
	swi 18
	bx lr
	thumb_func_end SVC_UncompressLZ16FromDevice

	non_word_aligned_thumb_func_start SVC_UncompressHuffmanFromDevice
SVC_UncompressHuffmanFromDevice:
	swi 19
	bx lr
	thumb_func_end SVC_UncompressHuffmanFromDevice

	non_word_aligned_thumb_func_start SVC_UncompressRL8
SVC_UncompressRL8:
	swi 20
	bx lr
	thumb_func_end SVC_UncompressRL8

	non_word_aligned_thumb_func_start SVC_UncompressRL16FromDevice
SVC_UncompressRL16FromDevice:
	swi 21
	bx lr
	thumb_func_end SVC_UncompressRL16FromDevice

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