mirror of
https://github.com/n64decomp/mk64
synced 2026-06-09 03:59:51 -04:00
19410f2825
his PR cleans up segment related code in main.c.
Also cleans up the linker a bit.
Add memory pool to linker as .bss to validate that it exists properly.
Move framebuffers, gfx, and audio buffers out of racing segment and make its own segment.
Rename framebuffers.c to buffers.c as it contains more than just framebuffers.
Import asserts from sm64 to validate that code segments are not overlapping
Rename segNoload to segmentNoload
Rename 802BA370 segment to trigTables
Rename gMenuSelectionFromEndingSequence to gGotoMenu
Rename gMenuSelectionFromQuit to gGotoMode
Rename SEG_ENDING_SEQUENCES to SEG_ENDING
Rename data_821D10 to ceremonyData
Rename data_825800 to startupLogo
22 lines
402 B
C
22 lines
402 B
C
#ifndef HARDCODED_SEGMENTS_H
|
|
#define HARDCODED_SEGMENTS_H
|
|
|
|
/**
|
|
* @file Contains hardcoded segment addresses
|
|
* Only used in the linker
|
|
**/
|
|
|
|
|
|
#define LINKER_MAIN 0x80000400
|
|
|
|
#define LINKER_ENDING 0x80280000
|
|
|
|
#define LINKER_RACING 0x8028DF00
|
|
|
|
#define LINKER_TRIG_TABLES 0x802BA370
|
|
|
|
// End of Jumper pak memory
|
|
#define RDRAM_END 0x807FFFFF
|
|
|
|
#endif /* HARDCODED_SEGMENTS_H */
|