summaryrefslogtreecommitdiff
path: root/arm9/asm
diff options
context:
space:
mode:
Diffstat (limited to 'arm9/asm')
-rw-r--r--arm9/asm/CARD_common.s21
-rw-r--r--arm9/asm/CARD_pullOut.s11
-rw-r--r--arm9/asm/CARD_rom.s7
-rw-r--r--arm9/asm/CTRDG.s11
-rw-r--r--arm9/asm/CTRDG_backup.s7
-rw-r--r--arm9/asm/CTRDG_flash_common.s69
-rw-r--r--arm9/asm/CTRDG_proc.s42
-rw-r--r--arm9/asm/CTRDG_task.s12
-rw-r--r--arm9/asm/RTC_external.s11
-rw-r--r--arm9/asm/SPI_mic.s11
-rw-r--r--arm9/asm/SPI_pm.s51
-rw-r--r--arm9/asm/SPI_tp.s16
-rw-r--r--arm9/asm/WM_etc.s6
-rw-r--r--arm9/asm/WM_system.s41
-rw-r--r--arm9/asm/libc.s167
-rw-r--r--arm9/asm/libmwcc.s6
16 files changed, 372 insertions, 117 deletions
diff --git a/arm9/asm/CARD_common.s b/arm9/asm/CARD_common.s
index 257313ca..37c24188 100644
--- a/arm9/asm/CARD_common.s
+++ b/arm9/asm/CARD_common.s
@@ -1,10 +1,23 @@
.include "asm/macros.inc"
.include "global.inc"
- .extern cardi_common
- .extern UNK_021D5560
- .extern UNK_021D555C
- .extern UNK_021D5BE0
+ .section .bss
+
+ .global UNK_021D555C
+UNK_021D555C: ; 0x021D555C
+ .space 0x4
+
+ .global UNK_021D5560
+UNK_021D5560: ; 0x021D5560
+ .space 0x60
+
+ .global cardi_common
+cardi_common: ; 0x021D55C0
+ .space 0x620
+
+ .global UNK_021D5BE0
+UNK_021D5BE0: ; 0x021D5BE0
+ .space 0x20
.text
diff --git a/arm9/asm/CARD_pullOut.s b/arm9/asm/CARD_pullOut.s
index 1ee992fe..a3237d3c 100644
--- a/arm9/asm/CARD_pullOut.s
+++ b/arm9/asm/CARD_pullOut.s
@@ -1,8 +1,15 @@
.include "asm/macros.inc"
.include "global.inc"
- .extern UNK_021D5E20
- .extern UNK_021D5E24
+ .section .bss
+
+ .global UNK_021D5E20
+UNK_021D5E20: ; 0x021D5E20
+ .space 0x4
+
+ .global UNK_021D5E24
+UNK_021D5E24: ; 0x021D5E24
+ .space 0x4
.text
diff --git a/arm9/asm/CARD_rom.s b/arm9/asm/CARD_rom.s
index 4f49cbc2..f858fd34 100644
--- a/arm9/asm/CARD_rom.s
+++ b/arm9/asm/CARD_rom.s
@@ -5,7 +5,12 @@
.extern UNK_021D5BE0
.extern cardi_common
.extern UNK_02106A50
- .extern UNK_021D5C00
+
+ .section .bss
+
+ .global UNK_021D5C00
+UNK_021D5C00: ; 0x021D5C00
+ .space 0x220
.text
diff --git a/arm9/asm/CTRDG.s b/arm9/asm/CTRDG.s
index 8a1b57d9..242e18a4 100644
--- a/arm9/asm/CTRDG.s
+++ b/arm9/asm/CTRDG.s
@@ -1,8 +1,15 @@
.include "asm/macros.inc"
.include "global.inc"
- .extern UNK_021D6940
- .extern UNK_021D6944
+ .section .bss
+
+ .global UNK_021D6940
+UNK_021D6940: ; 0x021D6940
+ .space 0x4
+
+ .global UNK_021D6944
+UNK_021D6944: ; 0x021D6944
+ .space 0x4
.text
diff --git a/arm9/asm/CTRDG_backup.s b/arm9/asm/CTRDG_backup.s
index 946a8cd6..dccfd773 100644
--- a/arm9/asm/CTRDG_backup.s
+++ b/arm9/asm/CTRDG_backup.s
@@ -8,7 +8,6 @@
.extern UNK_021D6B1C
.extern UNK_021D6B24
.extern UNK_021D6B20
- .extern UNK_021D6B4C
.extern UNK_021D6B0C
.extern UNK_02103FE4
.extern UNK_02103FF4
@@ -16,6 +15,12 @@
.extern UNK_021D6B2C
.extern UNK_021D6B18
+ .section .bss
+
+ .global UNK_021D6B4C
+UNK_021D6B4C: ; 0x021D6B4C
+ .space 0x4
+
.text
arm_func_start CTRDG_IdentifyAgbBackup
diff --git a/arm9/asm/CTRDG_flash_common.s b/arm9/asm/CTRDG_flash_common.s
index 80aff25a..374c532c 100644
--- a/arm9/asm/CTRDG_flash_common.s
+++ b/arm9/asm/CTRDG_flash_common.s
@@ -1,14 +1,67 @@
.include "asm/macros.inc"
.include "global.inc"
- .extern UNK_021D6B14
- .extern UNK_021D6B28
- .extern UNK_021D6B20
- .extern UNK_021D6B0C
- .extern UNK_021D6B3C
- .extern UNK_021D6B10
- .extern UNK_021D6B38
- .extern UNK_021D6B44
+ .section .bss
+
+ .global UNK_021D6B08
+UNK_021D6B08: ; 0x021D6B08
+ .space 0x4
+
+ .global UNK_021D6B0C
+UNK_021D6B0C: ; 0x021D6B0C
+ .space 0x4
+
+ .global UNK_021D6B10
+UNK_021D6B10: ; 0x021D6B10
+ .space 0x4
+
+ .global UNK_021D6B14
+UNK_021D6B14: ; 0x021D6B14
+ .space 0x4
+
+ .global UNK_021D6B18
+UNK_021D6B18: ; 0x021D6B18
+ .space 0x4
+
+ .global UNK_021D6B1C
+UNK_021D6B1C: ; 0x021D6B1C
+ .space 0x4
+
+ .global UNK_021D6B20
+UNK_021D6B20: ; 0x021D6B20
+ .space 0x4
+
+ .global UNK_021D6B24
+UNK_021D6B24: ; 0x021D6B24
+ .space 0x4
+
+ .global UNK_021D6B28
+UNK_021D6B28: ; 0x021D6B28
+ .space 0x4
+
+ .global UNK_021D6B2C
+UNK_021D6B2C: ; 0x021D6B2C
+ .space 0x4
+
+ .global UNK_021D6B30
+UNK_021D6B30: ; 0x021D6B30
+ .space 0x4
+
+ .global UNK_021D6B34
+UNK_021D6B34: ; 0x021D6B34
+ .space 0x4
+
+ .global UNK_021D6B38
+UNK_021D6B38: ; 0x021D6B38
+ .space 0x4
+
+ .global UNK_021D6B3C
+UNK_021D6B3C: ; 0x021D6B3C
+ .space 0x8
+
+ .global UNK_021D6B44
+UNK_021D6B44: ; 0x021D6B44
+ .space 0x8
.text
diff --git a/arm9/asm/CTRDG_proc.s b/arm9/asm/CTRDG_proc.s
index 564783de..3351aa2b 100644
--- a/arm9/asm/CTRDG_proc.s
+++ b/arm9/asm/CTRDG_proc.s
@@ -1,15 +1,41 @@
.include "asm/macros.inc"
.include "global.inc"
- .extern UNK_021D6954
- .extern UNK_021D6950
.extern UNK_021D6944
- .extern UNK_021D6A20
- .extern UNK_021D6958
- .extern UNK_021D6964
- .extern UNK_021D694C
- .extern UNK_021D6948
- .extern UNK_021D6960
+
+ .section .bss
+
+ .global UNK_021D6948
+UNK_021D6948: ; 0x021D6948
+ .space 0x4
+
+ .global UNK_021D694C
+UNK_021D694C: ; 0x021D694C
+ .space 0x4
+
+ .global UNK_021D6950
+UNK_021D6950: ; 0x021D6950
+ .space 0x4
+
+ .global UNK_021D6954
+UNK_021D6954: ; 0x021D6954
+ .space 0x4
+
+ .global UNK_021D6958
+UNK_021D6958: ; 0x021D6958
+ .space 0x8
+
+ .global UNK_021D6960
+UNK_021D6960: ; 0x021D6960
+ .space 0x4
+
+ .global UNK_021D6964
+UNK_021D6964: ; 0x021D6964
+ .space 0xbc
+
+ .global UNK_021D6A20
+UNK_021D6A20: ; 0x021D6A20
+ .space 0xe8
.text
diff --git a/arm9/asm/CTRDG_task.s b/arm9/asm/CTRDG_task.s
index 9850a3bd..c0feb88e 100644
--- a/arm9/asm/CTRDG_task.s
+++ b/arm9/asm/CTRDG_task.s
@@ -1,9 +1,17 @@
.include "asm/macros.inc"
.include "global.inc"
- .extern UNK_021D6B54
.extern UNK_021D6F78
- .extern UNK_021D6B50
+
+ .section .bss
+
+ .global UNK_021D6B50
+UNK_021D6B50: ; 0x021D6B50
+ .space 0x4
+
+ .global UNK_021D6B54
+UNK_021D6B54: ; 0x021D6B54
+ .space 0x424
.text
diff --git a/arm9/asm/RTC_external.s b/arm9/asm/RTC_external.s
index b9174cce..91605f14 100644
--- a/arm9/asm/RTC_external.s
+++ b/arm9/asm/RTC_external.s
@@ -1,8 +1,15 @@
.include "asm/macros.inc"
.include "global.inc"
- .extern UNK_021D5534
- .extern UNK_021D5538
+ .section .bss
+
+ .global UNK_021D5534
+UNK_021D5534: ; 0x021D5534
+ .space 0x4
+
+ .global UNK_021D5538
+UNK_021D5538: ; 0x021D5538
+ .space 0x24
.text
diff --git a/arm9/asm/SPI_mic.s b/arm9/asm/SPI_mic.s
index e8b7a016..f3977375 100644
--- a/arm9/asm/SPI_mic.s
+++ b/arm9/asm/SPI_mic.s
@@ -1,8 +1,15 @@
.include "asm/macros.inc"
.include "global.inc"
- .extern UNK_021D54B0
- .extern UNK_021D54AC
+ .section .bss
+
+ .global UNK_021D54AC
+UNK_021D54AC: ; 0x021D54AC
+ .space 0x4
+
+ .global UNK_021D54B0
+UNK_021D54B0: ; 0x021D54B0
+ .space 0x1c
.text
diff --git a/arm9/asm/SPI_pm.s b/arm9/asm/SPI_pm.s
index ca2592e4..2b889339 100644
--- a/arm9/asm/SPI_pm.s
+++ b/arm9/asm/SPI_pm.s
@@ -1,16 +1,47 @@
.include "asm/macros.inc"
.include "global.inc"
- .extern UNK_021D54DC
- .extern UNK_021D54E0
- .extern UNK_021D54D0
- .extern UNK_021D54D4
- .extern UNK_021D54F4
- .extern UNK_021D54CC
- .extern UNK_021D5510
- .extern UNK_021D54E4
- .extern UNK_021D54D8
- .extern UNK_021D550C
+ .section .bss
+
+ .global UNK_021D54CC
+UNK_021D54CC: ; 0x021D54CC
+ .space 0x4
+
+ .global UNK_021D54D0
+UNK_021D54D0: ; 0x021D54D0
+ .space 0x4
+
+ .global UNK_021D54D4
+UNK_021D54D4: ; 0x021D54D4
+ .space 0x4
+
+ .global UNK_021D54D8
+UNK_021D54D8: ; 0x021D54D8
+ .space 0x4
+
+ .global UNK_021D54DC
+UNK_021D54DC: ; 0x021D54DC
+ .space 0x4
+
+ .global UNK_021D54E0
+UNK_021D54E0: ; 0x021D54E0
+ .space 0x4
+
+ .global UNK_021D54E4
+UNK_021D54E4: ; 0x021D54E4
+ .space 0x10
+
+ .global UNK_021D54F4
+UNK_021D54F4: ; 0x021D54F4
+ .space 0x18
+
+ .global UNK_021D550C
+UNK_021D550C: ; 0x021D550C
+ .space 0x4
+
+ .global UNK_021D5510
+UNK_021D5510: ; 0x021D5510
+ .space 0x24
.text
diff --git a/arm9/asm/SPI_tp.s b/arm9/asm/SPI_tp.s
index 3b50b36b..233da29f 100644
--- a/arm9/asm/SPI_tp.s
+++ b/arm9/asm/SPI_tp.s
@@ -1,9 +1,19 @@
.include "asm/macros.inc"
.include "global.inc"
- .extern UNK_021D548C
- .extern UNK_021D5470
- .extern UNK_021D5474
+ .section .bss
+
+ .global UNK_021D5470
+UNK_021D5470: ; 0x021D5470
+ .space 0x4
+
+ .global UNK_021D5474
+UNK_021D5474: ; 0x021D5474
+ .space 0x18
+
+ .global UNK_021D548C
+UNK_021D548C: ; 0x021D548C
+ .space 0x20
.text
diff --git a/arm9/asm/WM_etc.s b/arm9/asm/WM_etc.s
index 55910862..f3c11f1d 100644
--- a/arm9/asm/WM_etc.s
+++ b/arm9/asm/WM_etc.s
@@ -1,7 +1,11 @@
.include "asm/macros.inc"
.include "global.inc"
- .extern UNK_021D68C0
+ .section .bss
+
+ .global UNK_021D68C0
+UNK_021D68C0: ; 0x021D68C0
+ .space 0x80
.text
diff --git a/arm9/asm/WM_system.s b/arm9/asm/WM_system.s
index b57e593c..e3792814 100644
--- a/arm9/asm/WM_system.s
+++ b/arm9/asm/WM_system.s
@@ -1,14 +1,39 @@
.include "asm/macros.inc"
.include "global.inc"
- .extern UNK_021D5E2C
- .extern UNK_021D5E78
- .extern UNK_021D5EC0
- .extern UNK_021D5E8C
- .extern UNK_021D5E9C
- .extern UNK_021D5E50
- .extern UNK_021D5E28
- .extern UNK_021D5E30
+ .section .bss
+
+ .global UNK_021D5E28
+UNK_021D5E28: ; 0x021D5E28
+ .space 0x4
+
+ .global UNK_021D5E2C
+UNK_021D5E2C: ; 0x021D5E2C
+ .space 0x4
+
+ .global UNK_021D5E30
+UNK_021D5E30: ; 0x021D5E30
+ .space 0x20
+
+ .global UNK_021D5E50
+UNK_021D5E50: ; 0x021D5E50
+ .space 0x28
+
+ .global UNK_021D5E78
+UNK_021D5E78: ; 0x021D5E78
+ .space 0x14
+
+ .global UNK_021D5E8C
+UNK_021D5E8C: ; 0x021D5E8C
+ .space 0x10
+
+ .global UNK_021D5E9C
+UNK_021D5E9C: ; 0x021D5E9C
+ .space 0x24
+
+ .global UNK_021D5EC0
+UNK_021D5EC0: ; 0x021D5EC0
+ .space 0xa00
.text
diff --git a/arm9/asm/libc.s b/arm9/asm/libc.s
index 6a8f7a5d..37d5a0fd 100644
--- a/arm9/asm/libc.s
+++ b/arm9/asm/libc.s
@@ -1,79 +1,120 @@
.include "asm/macros.inc"
.include "global.inc"
- .extern UNK_02106B3C
- .extern UNK_02106AA4
- .extern UNK_02106F58
- .extern UNK_02106E10
- .extern UNK_02106F18
- .extern UNK_02106DA0
- .extern UNK_02106B74
- .extern UNK_02106E88
- .extern UNK_02106DF0
- .extern UNK_02106E38
- .extern UNK_021D7118
- .extern UNK_021D74AC
- .extern UNK_02106E40
- .extern UNK_02106F50
- .extern UNK_02104754
- .extern UNK_02106F54
- .extern UNK_02104434
+ .extern OSi_ThreadInfo
+ .extern UNK_0210420C
+ .extern UNK_0210428C
.extern UNK_0210430C
- .extern UNK_021D6F88
- .extern UNK_021D7088
- .extern UNK_02106A58
- .extern UNK_02106F38
- .extern UNK_02106E44
.extern UNK_0210440C
- .extern UNK_02106DDC
- .extern UNK_0210420C
- .extern UNK_02106E48
- .extern UNK_02106DD4
+ .extern UNK_02104434
+ .extern UNK_02104439
+ .extern UNK_02104544
+ .extern UNK_02104744
+ .extern UNK_02104754
.extern UNK_02104764
- .extern UNK_02106B78
- .extern UNK_021D74A8
- .extern UNK_02106DBC
- .extern UNK_02106F28
+ .extern UNK_02106A58
+ .extern UNK_02106AA4
.extern UNK_02106AF0
- .extern UNK_02106DFC
- .extern UNK_02106F4C
- .extern UNK_02106DE0
- .extern UNK_02106F10
- .extern UNK_021D70D0
- .extern UNK_02106DB0
- .extern UNK_02106F48
- .extern OSi_ThreadInfo
- .extern UNK_021D70AC
- .extern UNK_02104439
+ .extern UNK_02106B3C
+ .extern UNK_02106B74
+ .extern UNK_02106B78
+ .extern UNK_02106B7C
+ .extern UNK_02106C98
+ .extern UNK_02106DA0
.extern UNK_02106DA8
- .extern UNK_02106E30
- .extern UNK_02104744
- .extern UNK_02106F3C
- .extern UNK_02106DD0
- .extern UNK_02106DE4
- .extern UNK_02106F2C
- .extern UNK_02106DD8
- .extern UNK_021D7178
- .extern UNK_02106F44
- .extern UNK_02106DC8
- .extern UNK_02106F34
+ .extern UNK_02106DB0
.extern UNK_02106DB8
+ .extern UNK_02106DBC
.extern UNK_02106DC0
- .extern UNK_02106F5C
- .extern UNK_02106EE0
- .extern UNK_02106B7C
- .extern UNK_02106EB8
- .extern UNK_02106E24
- .extern UNK_02106F30
- .extern UNK_02106C98
+ .extern UNK_02106DC8
+ .extern UNK_02106DD0
+ .extern UNK_02106DD4
+ .extern UNK_02106DD8
+ .extern UNK_02106DDC
+ .extern UNK_02106DE0
+ .extern UNK_02106DE4
+ .extern UNK_02106DF0
+ .extern UNK_02106DFC
.extern UNK_02106E08
- .extern UNK_021D6F78
+ .extern UNK_02106E10
.extern UNK_02106E18
- .extern UNK_02106F40
+ .extern UNK_02106E24
+ .extern UNK_02106E30
+ .extern UNK_02106E38
+ .extern UNK_02106E40
+ .extern UNK_02106E44
+ .extern UNK_02106E48
+ .extern UNK_02106E88
+ .extern UNK_02106EB8
+ .extern UNK_02106EE0
.extern UNK_02106EF8
- .extern UNK_02106F20
.extern UNK_02106F08
- .extern UNK_0210428C
- .extern UNK_02104544
+ .extern UNK_02106F10
+ .extern UNK_02106F18
+ .extern UNK_02106F20
+ .extern UNK_02106F28
+ .extern UNK_02106F2C
+ .extern UNK_02106F30
+ .extern UNK_02106F34
+ .extern UNK_02106F38
+ .extern UNK_02106F3C
+ .extern UNK_02106F40
+ .extern UNK_02106F44
+ .extern UNK_02106F48
+ .extern UNK_02106F4C
+ .extern UNK_02106F50
+ .extern UNK_02106F54
+ .extern UNK_02106F58
+ .extern UNK_02106F5C
+
+ .section .bss
+
+ .global UNK_021D6F78
+UNK_021D6F78: ; 0x021D6F78
+ .space 0x10
+
+ .global UNK_021D6F88
+UNK_021D6F88: ; 0x021D6F88
+ .space 0x100
+
+ .global UNK_021D7088
+UNK_021D7088: ; 0x021D7088
+ .space 0x24
+
+ .global UNK_021D70AC
+UNK_021D70AC: ; 0x021D70AC
+ .space 0x24
+
+ .global UNK_021D70D0
+UNK_021D70D0: ; 0x021D70D0
+ .space 0x48
+
+ .global UNK_021D7118
+UNK_021D7118: ; 0x021D7118
+ .space 0x60
+
+ .global UNK_021D7178
+UNK_021D7178: ; 0x021D7178
+ .space 0x30
+
+ .global UNK_021D71A8
+UNK_021D71A8: ; 0x021D71A8
+ .space 0x100
+
+ .global UNK_021D72A8
+UNK_021D72A8: ; 0x021D72A8
+ .space 0x100
+
+ .global UNK_021D73A8
+UNK_021D73A8: ; 0x021D73A8
+ .space 0x100
+
+ .global UNK_021D74A8
+UNK_021D74A8: ; 0x021D74A8
+ .space 0x4
+
+ .global UNK_021D74AC
+UNK_021D74AC: ; 0x021D74AC
+ .space 0x1c
.section .text
.balign 4, 0
diff --git a/arm9/asm/libmwcc.s b/arm9/asm/libmwcc.s
index c9ac924c..5b3fc86d 100644
--- a/arm9/asm/libmwcc.s
+++ b/arm9/asm/libmwcc.s
@@ -2,6 +2,12 @@
.include "global.inc"
.extern UNK_021D74A8
+ .section .bss
+
+ .global __global_destructor_chain
+__global_destructor_chain: ; 0x021D74C8
+ .space 0x18
+
.section .text
.balign 4, 0