Added bss for unknown_001050, unknown_003260, and unknown_005740

This commit is contained in:
David Benepe
2021-06-10 01:13:22 -05:00
parent 8fcd1d03da
commit 2b19923238
9 changed files with 1411 additions and 141 deletions
+11 -9
View File
@@ -116,8 +116,18 @@ class GenerateLD:
self.gen_line('romPos += SIZEOF(.rodata);')
self.gen_newline()
def gen_ucode_data_section(self):
self.gen_line('.ucodeData . : AT(romPos)')
self.gen_open_block()
self.gen_line(BUILD_DIR + '/asm/assets/ucode_data.o(.text);')
self.gen_close_block()
self.gen_line('romPos += SIZEOF(.ucodeData);')
self.gen_newline()
def gen_bss_section(self):
self.gen_line('.bss.noload (NOLOAD):')
self.gen_line('__BSS_SECTION_SIZE = SIZEOF(.bss.noload);')
self.gen_newline()
self.gen_line('.bss.noload . (NOLOAD): SUBALIGN(4)')
self.gen_open_block()
for file in self.files:
if file[0] not in LATE_DATA_FILES:
@@ -127,14 +137,6 @@ class GenerateLD:
self.gen_close_block()
self.gen_newline()
def gen_ucode_data_section(self):
self.gen_line('.ucodeData . : AT(romPos)')
self.gen_open_block()
self.gen_line(BUILD_DIR + '/asm/assets/ucode_data.o(.text);')
self.gen_close_block()
self.gen_line('romPos += SIZEOF(.ucodeData);')
self.gen_newline()
def gen_assets_section(self):
self.gen_line('__ASSETS_LUT_START = romPos;');
self.gen_line('__ASSETS_LUT_END = __ASSETS_LUT_START + ' + hex((((self.assets.numAssets + 2) * 4) + 15) & 0xFFFFFFF0) + ';');