Split libc.s, 4

This commit is contained in:
PikalaxALT
2021-06-01 21:10:18 -04:00
parent 71320b8a8c
commit e7929cb735
22 changed files with 2664 additions and 2567 deletions
+2
View File
@@ -571,7 +571,9 @@ Static arm9
Object MSL_strtold.o
Object MSL_strtoul.o
Object MSL_wchar_io.o
Object MSL_wctype.o
Object MSL_wmem.o
Object MSL_wprintf.o
Object libc.o
Object stdlibmwcc.o
}
+12
View File
@@ -158,3 +158,15 @@ _020DE2D8: .word __cs_ref
_020DE2DC: .word __console_exit
_020DE2E0: .word __atexit_funcs
arm_func_end __exit
.section .exceptix,4
.word abort
.short 37
.word 0x00100000
.word exit
.short 77
.word 0x00100100
.word __exit
.short 297
.word 0x00200300
+9
View File
@@ -140,3 +140,12 @@ _020DE3DC:
.balign 4
_020DE3EC: .word __files
arm_func_end __flush_all
.section .exceptix,4
.word __flush_line_buffered_output_files
.short 141
.word 0x00403F00
.word __flush_all
.short 105
.word 0x00403F00
+6
View File
@@ -29,3 +29,9 @@ __msl_assertion_failed: ; 0x020DE3FC
.balign 4
_020DE434: .word __local_str__msl_assertion_failed
arm_func_end __msl_assertion_failed
.section .exceptix,4
.word __msl_assertion_failed
.short 61
.word 0x00200100
+9
View File
@@ -108,3 +108,12 @@ _020DE574:
mov r0, #0x0
ldmia sp!, {r3-r5,pc}
arm_func_end __flush_buffer
.section .exceptix,4
.word __load_buffer
.short 141
.word 0x00200700
.word __flush_buffer
.short 137
.word 0x00200300
+15
View File
@@ -85,6 +85,7 @@ _020DE680: .word __cs
_020DE684: .word OSi_ThreadInfo
_020DE688: .word __cs_id
_020DE68C: .word __cs_ref
arm_func_end fread
arm_func_start __fread
__fread: ; 0x020DE690
@@ -316,6 +317,7 @@ _020DE9C4:
bl _u32_div_f
add sp, sp, #0x4
ldmia sp!, {r3-r10,pc}
arm_func_end __fread
arm_func_start __fwrite
__fwrite:
@@ -504,3 +506,16 @@ _020DEC5C:
bl _u32_div_f
add sp, sp, #0x8
ldmia sp!, {r3-r11,pc}
arm_func_end __fwrite
.section .exceptix,4
.word fread
.short 269
.word 0x00407F00
.word __fread
.short 841
.word 0x00507F00
.word __fwrite
.short 689
.word 0x0060FF00
+9
View File
@@ -104,3 +104,12 @@ _020DEDCC:
str r0, [r4, #0x28]
ldmia sp!, {r4,pc}
arm_func_end fflush
.section .exceptix,4
.word fclose
.short 117
.word 0x00200300
.word fflush
.short 233
.word 0x00100100
+15
View File
@@ -361,3 +361,18 @@ rewind: ; 0x020DF290
strb r0, [r4, #0xd]
ldmia sp!, {r4,pc}
arm_func_end rewind
.section .exceptix,4
.word ftell
.short 285
.word 0x00300F00
.word _fseek
.short 489
.word 0x00400320
.word fseek
.short 301
.word 0x00403F00
.word rewind
.short 37
.word 0x00100100
+6
View File
@@ -14,3 +14,9 @@ nan: ; 0x020DE2E4
_020DE2F4: .word __float_nan
_020DE2F8: .word _f2d
arm_func_end nan
.section .exceptix,4
.word nan
.short 25
.word 0x00000000
+15
View File
@@ -230,3 +230,18 @@ _020DF430:
mov r0, r7
ldmia sp!, {r3-r9,pc}
arm_func_end wcstombs
.section .exceptix,4
.word mbtowc
.short 29
.word 0x00100000
.word wctomb
.short 29
.word 0x00100000
.word mbstowcs
.short 137
.word 0x00301F00
.word wcstombs
.short 121
.word 0x00403F00
+6
View File
@@ -108,3 +108,9 @@ _020DF548:
mov r0, #0x0
bx lr
arm_func_end memcmp
.section .exceptix,4
.word memset
.short 21
.word 0x00100100
+43 -1
View File
@@ -76,7 +76,7 @@ UNK_02106DDC: ; 0x02106DDC
.text
local_arm_func_start parse_format
arm_func_start parse_format
parse_format: ; 0x020DF600
stmdb sp!, {r4-r8,lr}
sub sp, sp, #0x10
@@ -2571,3 +2571,45 @@ sprintf: ; 0x020E185C
add sp, sp, #0x10
bx lr
arm_func_end sprintf
.section .exceptix,4
.word long2str
.short 589
.word 0x0090FF20
.word longlong2str
.short 737
.word 0x00A0FF20
.word double2hex
.short 1245
.word 0x00F07F20
.word float2str
.short 1893
.word 0x00C0FF20
.word __pformatter
.short 2084
.word UNK_020EC710
.word __FileWrite
.short 45
.word 0x00200300
.word __StringWrite
.short 69
.word 0x00200300
.word printf
.short 281
.word 0x00300120
.word vsnprintf
.short 105
.word 0x00300300
.word snprintf
.short 41
.word 0x00300020
.word sprintf
.short 45
.word 0x00300020
.section .exception,8
UNK_020EC710: ; 0x020EC710
.byte 0x20, 0xFF, 0x09, 0x60
.balign 8
+6
View File
@@ -104,3 +104,9 @@ _020E19D8:
add sp, sp, #0x10
ldmia sp!, {r3-r11,pc}
arm_func_end qsort
.section .exceptix,4
.word qsort
.short 357
.word 0x0070FF00
+18
View File
@@ -1448,3 +1448,21 @@ sscanf: ; 0x020E2D54
add sp, sp, #0x10
bx lr
arm_func_end sscanf
.section .exceptix,4
.word __sformatter
.short 3412
.word UNK_020EC718
.word vsscanf
.short 85
.word 0x00200000
.word sscanf
.short 41
.word 0x00300020
.section .exception,8
UNK_020EC718: ; 0x020EC718
.byte 0x00, 0xFF, 0x01, 0xB0
.balign 8
+6
View File
@@ -103,3 +103,9 @@ _020E2EA0: .word __cs_id
_020E2EA4: .word __cs_ref
_020E2EA8: .word signal_funcs
arm_func_end raise
.section .exceptix,4
.word raise
.short 305
.word 0x00200300
+18
View File
@@ -1420,3 +1420,21 @@ atod: ; 0x020E463C
.balign 4
_020E4648: .word strtold
arm_func_end atod
.section .exceptix,4
.word __strtold
.short 4684
.word UNK_020EC720
.word strtold
.short 225
.word 0x00500F00
.word atod
.short 17
.word 0x00000000
.section .exception,8
UNK_020EC720: ; 0x020EC720
.byte 0x00, 0xFF, 0x01, 0xD0
.balign 8
+18
View File
@@ -724,3 +724,21 @@ atol: ; 0x020E4FE0
.balign 4
_020E4FF0: .word strtol
arm_func_end atol
.section .exceptix,4
.word __strtoul
.short 1001
.word 0x0060FF00
.word __strtoull
.short 1101
.word 0x0080FF00
.word strtoul
.short 153
.word 0x00600300
.word strtol
.short 201
.word 0x00600300
.word atol
.short 21
.word 0x00000000
+61
View File
@@ -0,0 +1,61 @@
.include "asm/macros.inc"
.include "global.inc"
.rodata
.global __wlower_mapC
__wlower_mapC: ; 0x02104444
.short 0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007
.short 0x0008, 0x0009, 0x000A, 0x000B, 0x000C, 0x000D, 0x000E, 0x000F
.short 0x0010, 0x0011, 0x0012, 0x0013, 0x0014, 0x0015, 0x0016, 0x0017
.short 0x0018, 0x0019, 0x001A, 0x001B, 0x001C, 0x001D, 0x001E, 0x001F
.short 0x0020, 0x0021, 0x0022, 0x0023, 0x0024, 0x0025, 0x0026, 0x0027
.short 0x0028, 0x0029, 0x002A, 0x002B, 0x002C, 0x002D, 0x002E, 0x002F
.short 0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0037
.short 0x0038, 0x0039, 0x003A, 0x003B, 0x003C, 0x003D, 0x003E, 0x003F
.short 0x0040, 0x0061, 0x0062, 0x0063, 0x0064, 0x0065, 0x0066, 0x0067
.short 0x0068, 0x0069, 0x006A, 0x006B, 0x006C, 0x006D, 0x006E, 0x006F
.short 0x0070, 0x0071, 0x0072, 0x0073, 0x0074, 0x0075, 0x0076, 0x0077
.short 0x0078, 0x0079, 0x007A, 0x005B, 0x005C, 0x005D, 0x005E, 0x005F
.short 0x0060, 0x0061, 0x0062, 0x0063, 0x0064, 0x0065, 0x0066, 0x0067
.short 0x0068, 0x0069, 0x006A, 0x006B, 0x006C, 0x006D, 0x006E, 0x006F
.short 0x0070, 0x0071, 0x0072, 0x0073, 0x0074, 0x0075, 0x0076, 0x0077
.short 0x0078, 0x0079, 0x007A, 0x007B, 0x007C, 0x007D, 0x007E, 0x007F
.global __wctype_mapC
__wctype_mapC: ; 0x02104544
.short 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004
.short 0x0004, 0x0106, 0x0104, 0x0104, 0x0104, 0x0104, 0x0004, 0x0004
.short 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004
.short 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004
.short 0x0142, 0x00D0, 0x00D0, 0x00D0, 0x00D0, 0x00D0, 0x00D0, 0x00D0
.short 0x00D0, 0x00D0, 0x00D0, 0x00D0, 0x00D0, 0x00D0, 0x00D0, 0x00D0
.short 0x0458, 0x0458, 0x0458, 0x0458, 0x0458, 0x0458, 0x0458, 0x0458
.short 0x0458, 0x0458, 0x00D0, 0x00D0, 0x00D0, 0x00D0, 0x00D0, 0x00D0
.short 0x00D0, 0x0651, 0x0651, 0x0651, 0x0651, 0x0651, 0x0651, 0x0251
.short 0x0251, 0x0251, 0x0251, 0x0251, 0x0251, 0x0251, 0x0251, 0x0251
.short 0x0251, 0x0251, 0x0251, 0x0251, 0x0251, 0x0251, 0x0251, 0x0251
.short 0x0251, 0x0251, 0x0251, 0x00D0, 0x00D0, 0x00D0, 0x00D0, 0x00D0
.short 0x00D0, 0x0471, 0x0471, 0x0471, 0x0471, 0x0471, 0x0471, 0x0071
.short 0x0071, 0x0071, 0x0071, 0x0071, 0x0071, 0x0071, 0x0071, 0x0071
.short 0x0071, 0x0071, 0x0071, 0x0071, 0x0071, 0x0071, 0x0071, 0x0071
.short 0x0071, 0x0071, 0x0071, 0x00D0, 0x00D0, 0x00D0, 0x00D0, 0x0004
.global __wupper_mapC
__wupper_mapC: ; 0x02104644
.short 0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007
.short 0x0008, 0x0009, 0x000A, 0x000B, 0x000C, 0x000D, 0x000E, 0x000F
.short 0x0010, 0x0011, 0x0012, 0x0013, 0x0014, 0x0015, 0x0016, 0x0017
.short 0x0018, 0x0019, 0x001A, 0x001B, 0x001C, 0x001D, 0x001E, 0x001F
.short 0x0020, 0x0021, 0x0022, 0x0023, 0x0024, 0x0025, 0x0026, 0x0027
.short 0x0028, 0x0029, 0x002A, 0x002B, 0x002C, 0x002D, 0x002E, 0x002F
.short 0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0037
.short 0x0038, 0x0039, 0x003A, 0x003B, 0x003C, 0x003D, 0x003E, 0x003F
.short 0x0040, 0x0041, 0x0042, 0x0043, 0x0044, 0x0045, 0x0046, 0x0047
.short 0x0048, 0x0049, 0x004A, 0x004B, 0x004C, 0x004D, 0x004E, 0x004F
.short 0x0050, 0x0051, 0x0052, 0x0053, 0x0054, 0x0055, 0x0056, 0x0057
.short 0x0058, 0x0059, 0x005A, 0x005B, 0x005C, 0x005D, 0x005E, 0x005F
.short 0x0060, 0x0041, 0x0042, 0x0043, 0x0044, 0x0045, 0x0046, 0x0047
.short 0x0048, 0x0049, 0x004A, 0x004B, 0x004C, 0x004D, 0x004E, 0x004F
.short 0x0050, 0x0051, 0x0052, 0x0053, 0x0054, 0x0055, 0x0056, 0x0057
.short 0x0058, 0x0059, 0x005A, 0x007B, 0x007C, 0x007D, 0x007E, 0x007F
+6
View File
@@ -27,3 +27,9 @@ _020E5098:
mov r0, #0x0
bx lr
arm_func_end wmemchr
.section .exceptix,4
.word wmemcpy
.short 17
.word 0x00000000
File diff suppressed because it is too large Load Diff
+7 -2565
View File
File diff suppressed because it is too large Load Diff
+4 -1
View File
@@ -3156,7 +3156,10 @@ _ExitProcess: ; 0x020EC704
.balign 4
_020EC70C: .word sys_exit
.section .exception
.section .exception,8
.section .exceptix,4
.word 0x00200100
.word __read_console
.short 81