mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
Wrote script to fix checksums
This commit is contained in:
@@ -53,6 +53,9 @@ class GenerateLD:
|
||||
self.gen_open_block()
|
||||
self.gen_line('romPos = 0x0;')
|
||||
self.gen_boot_section()
|
||||
self.gen_line('__RAM_START = 0x80000400;')
|
||||
self.gen_line('__RAM_TO_ROM = __RAM_START - romPos;')
|
||||
self.gen_newline()
|
||||
self.gen_main_section()
|
||||
self.gen_ucode_text_section()
|
||||
self.gen_data_section()
|
||||
@@ -75,7 +78,7 @@ class GenerateLD:
|
||||
self.gen_newline()
|
||||
|
||||
def gen_main_section(self):
|
||||
self.gen_line('.main 0x80000400 : AT(romPos) SUBALIGN(16)')
|
||||
self.gen_line('.main __RAM_START : AT(romPos) SUBALIGN(16)')
|
||||
self.gen_open_block()
|
||||
for file in self.files:
|
||||
self.gen_line(file[0] + '(.text);')
|
||||
|
||||
Reference in New Issue
Block a user