Massive data relocation (#295)

Mostly relocating rodata from data/* files to the appropriate
 asm/nonmatching/* files, although there is some plain data
 relocating to be found in here too.

Big change to note is the addition of the code_802AAA70.c file,
 split from memory.c. Based on some padding in the ro/data for
 memory it seems clear that a split is needed, although it is
 not clear that exact spot chosen for the split is correct.
 Still, it gets the file padding for the ro/data and text segments
 correct so it can't be too wrong.

Also included is an update to the asm_processor tool to support
 the .hword directive. I made a PR to the main repo of that
 project with an identical change and it was accepted.

Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
This commit is contained in:
Tyler McGavran
2023-03-29 20:52:15 -04:00
committed by GitHub
parent 8d118db0b2
commit 782ed71f61
299 changed files with 6189 additions and 16002 deletions
+1 -1
View File
@@ -628,7 +628,7 @@ class GlobalAsmBlock:
self.add_sized(self.count_quoted_size(line, z, real_line, output_enc), real_line)
elif line.startswith('.byte'):
self.add_sized(len(line.split(',')), real_line)
elif line.startswith('.half'):
elif line.startswith('.half') or line.startswith('.hword'):
self.align2()
self.add_sized(2*len(line.split(',')), real_line)
elif line.startswith('.'):