mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
Added __BSS_SECTION_SIZE to entrypoint.s
This commit is contained in:
+2
-4
@@ -10,13 +10,11 @@
|
||||
|
||||
.section .text
|
||||
|
||||
# .word __BSS_SECTION_SIZE # Should equal 0x41490
|
||||
|
||||
glabel entrypoint
|
||||
/* 001000 80000400 3C08800F */ lui $t0, %hi(gBssSectionStart) # $t0, 0x800f
|
||||
/* 001004 80000404 3C090004 */ lui $t1, (0x41490 >> 16) # lui $t1, 4
|
||||
/* 001004 80000404 3C090004 */ lui $t1, %hi(__BSS_SECTION_SIZE) # lui $t1, 4
|
||||
/* 001008 80000408 2508BF60 */ addiu $t0, %lo(gBssSectionStart) # addiu $t0, $t0, -0x40a0
|
||||
/* 00100C 8000040C 35291490 */ ori $t1, (0x41490 & 0xFFFF) # ori $t1, $t1, 0x1490
|
||||
/* 00100C 8000040C 35291490 */ ori $t1, %lo(__BSS_SECTION_SIZE) # ori $t1, $t1, 0x1490
|
||||
.L80000410:
|
||||
/* 001010 80000410 2129FFF8 */ addi $t1, $t1, -8
|
||||
/* 001014 80000414 AD000000 */ sw $zero, ($t0)
|
||||
|
||||
@@ -135,6 +135,8 @@ void audio_init(u32 arg0){
|
||||
u32 seq_max_len;
|
||||
u32 tmp2;
|
||||
audioMgrConfig audConfig;
|
||||
|
||||
//*((s32*)0x803FFFFC) = 0xDEADBEEF;
|
||||
|
||||
seq_max_len = 0;
|
||||
alHeapInit(&gALHeap, gBssSectionStart, 0x00029D88);
|
||||
|
||||
@@ -134,7 +134,7 @@ class GenerateLD:
|
||||
self.gen_newline()
|
||||
|
||||
def gen_bss_section(self):
|
||||
self.gen_line('__BSS_SECTION_SIZE = SIZEOF(.bss.noload);')
|
||||
self.gen_line('__BSS_SECTION_SIZE = SIZEOF(.bss.noload) - 0x10;')
|
||||
self.gen_newline()
|
||||
self.gen_line('.bss.noload . (NOLOAD): SUBALIGN(4)')
|
||||
self.gen_open_block()
|
||||
|
||||
Reference in New Issue
Block a user