Skip to content

Commit 1707e89

Browse files
Merge pull request #372 from red031000/master
split MSL_Common_string.s
2 parents 1b9560e + ba2292c commit 1707e89

43 files changed

Lines changed: 9076 additions & 8710 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
.include "asm/macros.inc"
2+
.include "MSL_ARM_pool_alloc_NITRO.inc"
3+
.include "global.inc"
4+
5+
.text
6+
7+
arm_func_start __sys_alloc
8+
__sys_alloc: ; 0x020F0338
9+
ldr ip, _020F034C ; =OS_AllocFromHeap
10+
mov r2, r0
11+
mov r0, #0
12+
sub r1, r0, #1
13+
bx ip
14+
.align 2, 0
15+
_020F034C: .word OS_AllocFromHeap
16+
arm_func_end __sys_alloc
17+
18+
arm_func_start __sys_free
19+
__sys_free: ; 0x020F0350
20+
ldr ip, _020F0364 ; =OS_FreeToHeap
21+
mov r2, r0
22+
mov r0, #0
23+
sub r1, r0, #1
24+
bx ip
25+
.align 2, 0
26+
_020F0364: .word OS_FreeToHeap
27+
arm_func_end __sys_free
28+
29+
exception __sys_alloc, 0x0019, 0x00000000
30+
exception __sys_free, 0x0019, 0x00000000
Lines changed: 365 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,365 @@
1+
.include "asm/macros.inc"
2+
.include "MSL_CPP_NITRO_Ai_LE.inc"
3+
.include "global.inc"
4+
5+
.data
6+
7+
; this entire file is a bit of a guess
8+
9+
.balign 4, 0
10+
.public _02111504
11+
_02111504:
12+
.word _021117F4
13+
.word _02111528
14+
_0211150C:
15+
.word _021117F4
16+
.word _0211158C
17+
_02111514:
18+
.word _021117F4
19+
.word _02111568
20+
_0211151C:
21+
.word _021117E4
22+
.word _021115B8
23+
.word _0211150C
24+
_02111528:
25+
.asciz "St9exception"
26+
.balign 4, 0
27+
_02111538:
28+
.word 0
29+
.word _0211150C
30+
_02111540:
31+
.word _ZNSt9exceptionD1Ev
32+
.word _ZNSt9exceptionD0Ev
33+
.word 0
34+
.word 0
35+
.word 0
36+
.word _0211151C
37+
_02111558:
38+
.word _ZNSt3tr16detail18shared_ptr_deleterIcNSt6detail14default_deleteIA0_cEEED1Ev
39+
.word _ZNSt3tr16detail18shared_ptr_deleterIcNSt6detail14default_deleteIA0_cEEED0Ev
40+
.word _ZNKSt3tr16detail18shared_ptr_deleterIcNSt6detail14default_deleteIA0_cEEE11get_deleterERKSt9type_info
41+
.word _ZNSt3tr16detail18shared_ptr_deleterIcNSt6detail14default_deleteIA0_cEEE7disposeEv
42+
_02111568:
43+
.asciz "NSt6detail14default_deleteIA0_cEE"
44+
.balign 4, 0
45+
_0211158C:
46+
.asciz "NSt3tr16detail25shared_ptr_deleter_commonE"
47+
.balign 4, 0
48+
_021115B8:
49+
.asciz "NSt3tr16detail18shared_ptr_deleterIcNSt6detail14default_deleteIA0_cEEEE"
50+
.balign 4, 0
51+
_02111600:
52+
.word _021117E4
53+
.word _02111618
54+
.word _02111504
55+
_0211160C:
56+
.word _021117E4
57+
.word _02111628
58+
.word _02111600
59+
_02111618:
60+
.asciz "St11logic_error"
61+
.balign 4, 0
62+
_02111628:
63+
.asciz "St12length_error"
64+
.balign 4, 0
65+
_0211163C:
66+
.word 0
67+
.word _0211160C
68+
_02111644:
69+
.word _ZNSt12length_errorD1Ev
70+
.word _ZNSt12length_errorD0Ev
71+
.word _ZNSt3tr16detail25shared_ptr_deleter_commonD2Ev
72+
.word 0
73+
.word _02111600
74+
_02111658:
75+
.word _ZNSt11logic_errorD1Ev
76+
.word _ZNSt11logic_errorD0Ev
77+
.word _ZNSt3tr16detail25shared_ptr_deleter_commonD2Ev
78+
_02111664:
79+
.asciz "vector length error"
80+
.balign 4, 0
81+
_02111678:
82+
.asciz "!std::exception!!std::logic_error!!std::length_error!!"
83+
84+
.text
85+
86+
arm_func_start _ZNSt9exceptionD2Ev
87+
_ZNSt9exceptionD2Ev: ; 0x020F03DC
88+
bx lr
89+
arm_func_end _ZNSt9exceptionD2Ev
90+
91+
arm_func_start _ZNSt3tr110shared_ptrIcEC1IcNSt6detail14default_deleteIA0_cEEEEPT_T0_
92+
_ZNSt3tr110shared_ptrIcEC1IcNSt6detail14default_deleteIA0_cEEEEPT_T0_: ; 0x020F03E0
93+
stmdb sp!, {r0, r1, r2, r3}
94+
stmdb sp!, {r3, r4, r5, lr}
95+
sub sp, sp, #8
96+
mov r5, r0
97+
mov r4, r1
98+
str r4, [r5]
99+
add r1, sp, #0x20
100+
mov r0, #0x10
101+
str r4, [sp]
102+
str r1, [sp, #4]
103+
bl _Znwm
104+
cmp r0, #0
105+
beq _020F0430
106+
ldr r1, _020F0458 ; =_02111540
107+
mov r2, #1
108+
stmia r0, {r1, r2}
109+
ldr r1, _020F045C ; =_02111558
110+
str r2, [r0, #8]
111+
str r1, [r0]
112+
str r4, [r0, #0xc]
113+
_020F0430:
114+
str r0, [r5, #4]
115+
mov r1, #0
116+
add r0, sp, #0
117+
str r1, [sp]
118+
bl _ZN10Metrowerks8move_ptrIcRNSt6detail14default_deleteIA0_cEEED1Ev
119+
mov r0, r5
120+
add sp, sp, #8
121+
ldmia sp!, {r3, r4, r5, lr}
122+
add sp, sp, #0x10
123+
bx lr
124+
.align 2, 0
125+
_020F0458: .word _02111540
126+
_020F045C: .word _02111558
127+
arm_func_end _ZNSt3tr110shared_ptrIcEC1IcNSt6detail14default_deleteIA0_cEEEEPT_T0_
128+
129+
arm_func_start _ZNSt9exceptionD0Ev
130+
_ZNSt9exceptionD0Ev: ; 0x020F0460
131+
stmdb sp!, {r4, lr}
132+
mov r4, r0
133+
bl _ZdlPv
134+
mov r0, r4
135+
ldmia sp!, {r4, pc}
136+
arm_func_end _ZNSt9exceptionD0Ev
137+
138+
arm_func_start _ZNSt9exceptionD1Ev
139+
_ZNSt9exceptionD1Ev: ; 0x020F0474
140+
bx lr
141+
arm_func_end _ZNSt9exceptionD1Ev
142+
143+
arm_func_start _ZNKSt3tr16detail18shared_ptr_deleterIcNSt6detail14default_deleteIA0_cEEE11get_deleterERKSt9type_info
144+
_ZNKSt3tr16detail18shared_ptr_deleterIcNSt6detail14default_deleteIA0_cEEE11get_deleterERKSt9type_info: ; 0x020F0478
145+
stmdb sp!, {r4, lr}
146+
mov r4, r0
147+
mov r0, r1
148+
ldr r1, _020F049C ; =_02111514
149+
bl _ZNKSt9type_infoeqERKS_
150+
cmp r0, #0
151+
addne r0, r4, #0xc
152+
moveq r0, #0
153+
ldmia sp!, {r4, pc}
154+
.align 2, 0
155+
_020F049C: .word _02111514
156+
arm_func_end _ZNKSt3tr16detail18shared_ptr_deleterIcNSt6detail14default_deleteIA0_cEEE11get_deleterERKSt9type_info
157+
158+
arm_func_start _ZNSt3tr16detail18shared_ptr_deleterIcNSt6detail14default_deleteIA0_cEEE7disposeEv
159+
_ZNSt3tr16detail18shared_ptr_deleterIcNSt6detail14default_deleteIA0_cEEE7disposeEv: ; 0x020F04A0
160+
ldr ip, _020F04AC ; =_ZdaPv
161+
ldr r0, [r0, #0xc]
162+
bx ip
163+
.align 2, 0
164+
_020F04AC: .word _ZdaPv
165+
arm_func_end _ZNSt3tr16detail18shared_ptr_deleterIcNSt6detail14default_deleteIA0_cEEE7disposeEv
166+
167+
arm_func_start _ZNSt3tr110shared_ptrIcED1Ev
168+
_ZNSt3tr110shared_ptrIcED1Ev: ; 0x020F04B0
169+
stmdb sp!, {r3, r4, fp, lr}
170+
sub sp, sp, #0x18
171+
mov fp, sp
172+
mov r4, r0
173+
ldr r0, [r4, #4]
174+
cmp r0, #0
175+
beq _020F04D0
176+
bl _ZNSt3tr16detail25shared_ptr_deleter_common7releaseEv
177+
_020F04D0:
178+
add sp, fp, #0x18
179+
mov r0, r4
180+
ldmia sp!, {r3, r4, fp, pc}
181+
_020F04DC: ; 0x020F04DC
182+
add r0, fp, #0
183+
bl __unexpected
184+
_020F04E4:
185+
b _020F04E4
186+
_020F04E8: ; 0x020F04E8
187+
add sp, fp, #0x18
188+
ldmia sp!, {r3, r4, fp, pc}
189+
arm_func_end _ZNSt3tr110shared_ptrIcED1Ev
190+
191+
arm_func_start _ZN10Metrowerks8move_ptrIcRNSt6detail14default_deleteIA0_cEEED1Ev
192+
_ZN10Metrowerks8move_ptrIcRNSt6detail14default_deleteIA0_cEEED1Ev: ; 0x020F04F0
193+
stmdb sp!, {r4, lr}
194+
mov r4, r0
195+
ldr r0, [r4]
196+
cmp r0, #0
197+
beq _020F0508
198+
bl _ZdaPv
199+
_020F0508:
200+
mov r0, r4
201+
ldmia sp!, {r4, pc}
202+
arm_func_end _ZN10Metrowerks8move_ptrIcRNSt6detail14default_deleteIA0_cEEED1Ev
203+
204+
arm_func_start _ZNSt3tr16detail18shared_ptr_deleterIcNSt6detail14default_deleteIA0_cEEED0Ev
205+
_ZNSt3tr16detail18shared_ptr_deleterIcNSt6detail14default_deleteIA0_cEEED0Ev: ; 0x020F0510
206+
stmdb sp!, {r4, lr}
207+
mov r4, r0
208+
bl _ZdlPv
209+
mov r0, r4
210+
ldmia sp!, {r4, pc}
211+
arm_func_end _ZNSt3tr16detail18shared_ptr_deleterIcNSt6detail14default_deleteIA0_cEEED0Ev
212+
213+
arm_func_start _ZNSt3tr16detail18shared_ptr_deleterIcNSt6detail14default_deleteIA0_cEEED1Ev
214+
_ZNSt3tr16detail18shared_ptr_deleterIcNSt6detail14default_deleteIA0_cEEED1Ev: ; 0x020F0524
215+
bx lr
216+
arm_func_end _ZNSt3tr16detail18shared_ptr_deleterIcNSt6detail14default_deleteIA0_cEEED1Ev
217+
218+
arm_func_start _ZNSt3tr16detail25shared_ptr_deleter_commonD2Ev
219+
_ZNSt3tr16detail25shared_ptr_deleter_commonD2Ev: ; 0x020F0528
220+
ldr r0, [r0, #4]
221+
bx lr
222+
arm_func_end _ZNSt3tr16detail25shared_ptr_deleter_commonD2Ev
223+
224+
arm_func_start _ZNSt11logic_errorD1Ev
225+
_ZNSt11logic_errorD1Ev: ; 0x020F0530
226+
stmdb sp!, {r4, lr}
227+
mov r4, r0
228+
add r0, r4, #4
229+
bl _ZNSt3tr110shared_ptrIcED1Ev
230+
mov r0, r4
231+
ldmia sp!, {r4, pc}
232+
arm_func_end _ZNSt11logic_errorD1Ev
233+
234+
arm_func_start _ZNSt11logic_errorD0Ev
235+
_ZNSt11logic_errorD0Ev: ; 0x020F0548
236+
stmdb sp!, {r4, lr}
237+
mov r4, r0
238+
add r0, r4, #4
239+
bl _ZNSt3tr110shared_ptrIcED1Ev
240+
mov r0, r4
241+
bl _ZdlPv
242+
mov r0, r4
243+
ldmia sp!, {r4, pc}
244+
arm_func_end _ZNSt11logic_errorD0Ev
245+
246+
arm_func_start _ZNSt12length_errorD1Ev
247+
_ZNSt12length_errorD1Ev: ; 0x020F0568
248+
stmdb sp!, {r4, lr}
249+
mov r4, r0
250+
add r0, r4, #4
251+
bl _ZNSt3tr110shared_ptrIcED1Ev
252+
mov r0, r4
253+
ldmia sp!, {r4, pc}
254+
arm_func_end _ZNSt12length_errorD1Ev
255+
256+
arm_func_start _ZNSt12length_errorD0Ev
257+
_ZNSt12length_errorD0Ev: ; 0x020F0580
258+
stmdb sp!, {r4, lr}
259+
mov r4, r0
260+
add r0, r4, #4
261+
bl _ZNSt3tr110shared_ptrIcED1Ev
262+
mov r0, r4
263+
bl _ZdlPv
264+
mov r0, r4
265+
ldmia sp!, {r4, pc}
266+
arm_func_end _ZNSt12length_errorD0Ev
267+
268+
arm_func_start _ZNSt3tr16detail25shared_ptr_deleter_common7releaseEv
269+
_ZNSt3tr16detail25shared_ptr_deleter_common7releaseEv: ; 0x020F05A0
270+
stmdb sp!, {r4, lr}
271+
mov r4, r0
272+
ldr r1, [r4, #4]
273+
subs r1, r1, #1
274+
str r1, [r4, #4]
275+
ldmneia sp!, {r4, pc}
276+
ldr r1, [r0]
277+
ldr r1, [r1, #0xc]
278+
blx r1
279+
mov r0, r4
280+
bl _ZNSt3tr16detail25shared_ptr_deleter_common12release_weakEv
281+
ldmia sp!, {r4, pc}
282+
arm_func_end _ZNSt3tr16detail25shared_ptr_deleter_common7releaseEv
283+
284+
arm_func_start _ZNSt3tr16detail25shared_ptr_deleter_common12release_weakEv
285+
_ZNSt3tr16detail25shared_ptr_deleter_common12release_weakEv: ; 0x020F05D0
286+
stmdb sp!, {r3, lr}
287+
ldr r1, [r0, #8]
288+
subs r1, r1, #1
289+
str r1, [r0, #8]
290+
ldmneia sp!, {r3, pc}
291+
cmp r0, #0
292+
ldmeqia sp!, {r3, pc}
293+
ldr r1, [r0]
294+
ldr r1, [r1, #4]
295+
blx r1
296+
ldmia sp!, {r3, pc}
297+
arm_func_end _ZNSt3tr16detail25shared_ptr_deleter_common12release_weakEv
298+
299+
arm_func_start _ZNSt15__vector_commonILb1EE18throw_length_errorEv
300+
_ZNSt15__vector_commonILb1EE18throw_length_errorEv: ; 0x020F05FC
301+
stmdb sp!, {r4, r5, r6, lr}
302+
sub sp, sp, #0x10
303+
ldr r4, _020F0678 ; =_02111664
304+
ldr r1, _020F067C ; =_02111658
305+
add r6, sp, #4
306+
mov r0, r4
307+
str r1, [sp, #4]
308+
add r5, sp, #8
309+
bl strlen
310+
add r0, r0, #1
311+
rsb r0, r0, r0, lsl #1
312+
bl _Znam
313+
mov r1, #0
314+
strb r1, [sp]
315+
sub r2, sp, #4
316+
strb r1, [r2]
317+
mov r1, r0
318+
ldr r2, [r2]
319+
mov r0, r5
320+
bl _ZNSt3tr110shared_ptrIcEC1IcNSt6detail14default_deleteIA0_cEEEEPT_T0_
321+
ldr r0, [r5]
322+
mov r1, r4
323+
bl strcpy
324+
ldr r3, _020F0680 ; =_02111644
325+
ldr r0, _020F0684 ; =_02111678
326+
ldr r2, _020F0688 ; =_ZNSt12length_errorD1Ev
327+
mov r1, r6
328+
str r3, [sp, #4]
329+
bl __throw
330+
add sp, sp, #0x10
331+
ldmia sp!, {r4, r5, r6, pc}
332+
.align 2, 0
333+
_020F0678: .word _02111664
334+
_020F067C: .word _02111658
335+
_020F0680: .word _02111644
336+
_020F0684: .word _02111678
337+
_020F0688: .word _ZNSt12length_errorD1Ev
338+
arm_func_end _ZNSt15__vector_commonILb1EE18throw_length_errorEv
339+
340+
exception _ZNSt3tr110shared_ptrIcEC1IcNSt6detail14default_deleteIA0_cEEEEPT_T0_, 0x0080, _ZNSt3tr110shared_ptrIcEC1IcNSt6detail14default_deleteIA0_cEEEEPT_T0__exception
341+
exception _ZNSt9exceptionD0Ev, 0x0015, 0x00100100
342+
exception _ZNKSt3tr16detail18shared_ptr_deleterIcNSt6detail14default_deleteIA0_cEEE11get_deleterERKSt9type_info, 0x0029, 0x00100100
343+
exception _ZNSt3tr16detail18shared_ptr_deleterIcNSt6detail14default_deleteIA0_cEEE7disposeEv, 0x0011, 0x00000000
344+
exception _ZNSt3tr110shared_ptrIcED1Ev, 0x0040, _ZNSt3tr110shared_ptrIcED1Ev_exception
345+
exception _ZN10Metrowerks8move_ptrIcRNSt6detail14default_deleteIA0_cEEED1Ev, 0x0021, 0x00100100
346+
exception _ZNSt3tr16detail18shared_ptr_deleterIcNSt6detail14default_deleteIA0_cEEED0Ev, 0x0015, 0x00100100
347+
exception _ZNSt11logic_errorD1Ev, 0x0019, 0x00100100
348+
exception _ZNSt11logic_errorD0Ev, 0x0021, 0x00100100
349+
exception _ZNSt12length_errorD1Ev, 0x0019, 0x00100100
350+
exception _ZNSt12length_errorD0Ev, 0x0021, 0x00100100
351+
exception _ZNSt3tr16detail25shared_ptr_deleter_common7releaseEv, 0x0031, 0x00100100
352+
exception _ZNSt3tr16detail25shared_ptr_deleter_common12release_weakEv, 0x002D, 0x00100000
353+
exception _ZNSt15__vector_commonILb1EE18throw_length_errorEv, 0x0090, _ZNSt15__vector_commonILb1EE18throw_length_errorEv_exception
354+
355+
.section .exception,4,1,2
356+
357+
_ZNSt3tr110shared_ptrIcEC1IcNSt6detail14default_deleteIA0_cEEEEPT_T0__exception:
358+
.byte 0x20, 0x03, 0x50, 0x58, 0x00, 0x0E, 0x00, 0x82, 0x00, 0xF0, 0x04, 0x0F, 0x02, 0x00, 0x00, 0x00
359+
_ZNSt3tr110shared_ptrIcED1Ev_exception:
360+
.byte 0x40, 0x81, 0x50, 0x00
361+
.byte 0x40, 0x00, 0x16, 0x28, 0x00, 0x1E, 0x00, 0x8F, 0x00, 0x58, 0x00, 0x8D, 0x00, 0x00, 0x00, 0x00
362+
_ZNSt15__vector_commonILb1EE18throw_length_errorEv_exception:
363+
.byte 0x00, 0x07, 0x40, 0x48, 0x58, 0x22, 0x18, 0x00, 0x14, 0x00, 0x27, 0x0A, 0x00, 0xB0, 0x04, 0x0F
364+
.byte 0x02, 0xA6, 0x0C, 0x00
365+
.word _ZNSt9exceptionD2Ev

0 commit comments

Comments
 (0)