Mario Kart 64
Loading...
Searching...
No Matches
segments.h File Reference
#include <ultra64.h>
#include <macros.h>
Include dependency graph for segments.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SEG_START   0x80000000
 
#define MEMORY_POOL_START   (uintptr_t) & _memoryPoolSegmentNoloadStart
 
#define MEMORY_POOL_END   (uintptr_t) 0x80242F00
 
#define SEG_ENDING   (uintptr_t) 0x80280000
 
#define SEG_ENDING_ROM_START   (u8*) &_endingSegmentRomStart[0]
 
#define SEG_ENDING_SIZE   (size_t) 0xDF00
 
#define SEG_ENDING_ROM_SIZE   (size_t) ALIGN16((ptrdiff_t) (&_endingSegmentRomEnd[0] - &_endingSegmentRomStart[0]))
 
#define SEG_RACING   (uintptr_t) 0x8028DF00
 
#define SEG_RACING_ROM_START   (u8*) &_racingSegmentRomStart[0]
 
#define SEG_RACING_SIZE   (size_t) 0x2C470
 
#define SEG_RACING_ROM_SIZE   (size_t) ALIGN16((ptrdiff_t) (&_racingSegmentRomEnd[0] - &_racingSegmentRomStart[0]))
 
#define TRIG_TABLES   (uintptr_t) 0x802BA370
 
#define TRIG_TABLES_ROM_START   (uintptr_t) & _trigTablesSegmentRomStart[0]
 
#define TRIG_TABLES_SIZE   (size_t) 0x5810
 
#define SEG_DATA_START   (uintptr_t) & _data_segment2SegmentRomStart[0]
 
#define SEG_DATA_END   (uintptr_t) & _data_segment2SegmentRomEnd[0]
 
#define COMMON_TEXTURES_ROM_START   (uintptr_t) & _common_texturesSegmentRomStart[0]
 
#define COMMON_TEXTURES_SIZE    (ptrdiff_t)((uintptr_t) & _common_texturesSegmentRomEnd - (uintptr_t) & _common_texturesSegmentRomStart)
 
#define CEREMONY_DATA_ROM_START   &_ceremonyDataSegmentRomStart[0]
 
#define CEREMONY_DATA_ROM_END   &_ceremonyDataSegmentRomEnd[0]
 
#define STARTUP_LOGO_ROM_START   &_startupLogoSegmentRomStart[0]
 
#define STARTUP_LOGO_ROM_END   &_startupLogoSegmentRomEnd[0]
 

Variables

u8 _memoryPoolSegmentNoloadStart []
 
u8 _memoryPoolSegmentNoloadEnd []
 
u8 _endingSegmentStart []
 
u8 _endingSegmentRomStart []
 
u8 _endingSegmentRomEnd []
 
u8 _endingSegmentNoloadEnd []
 
u8 _racingSegmentStart []
 
u8 _racingSegmentNoloadEnd []
 
u8 _racingSegmentRomStart []
 
u8 _racingSegmentRomEnd []
 
u8 _trigTablesSegmentStart []
 
u8 _trigTablesSegmentSize []
 
u8 _trigTablesSegmentRomStart []
 
u8 _data_segment2SegmentRomStart []
 
u8 _data_segment2SegmentRomEnd []
 
u8 _common_texturesSegmentRomStart []
 
u8 _common_texturesSegmentRomEnd []
 
u8 _ceremonyDataSegmentRomStart []
 
u8 _ceremonyDataSegmentRomEnd []
 
u8 _startupLogoSegmentRomStart []
 
u8 _startupLogoSegmentRomEnd []
 

Macro Definition Documentation

◆ CEREMONY_DATA_ROM_END

#define CEREMONY_DATA_ROM_END   &_ceremonyDataSegmentRomEnd[0]

◆ CEREMONY_DATA_ROM_START

#define CEREMONY_DATA_ROM_START   &_ceremonyDataSegmentRomStart[0]

◆ COMMON_TEXTURES_ROM_START

#define COMMON_TEXTURES_ROM_START   (uintptr_t) & _common_texturesSegmentRomStart[0]

◆ COMMON_TEXTURES_SIZE

#define COMMON_TEXTURES_SIZE    (ptrdiff_t)((uintptr_t) & _common_texturesSegmentRomEnd - (uintptr_t) & _common_texturesSegmentRomStart)

◆ MEMORY_POOL_END

#define MEMORY_POOL_END   (uintptr_t) 0x80242F00

◆ MEMORY_POOL_START

#define MEMORY_POOL_START   (uintptr_t) & _memoryPoolSegmentNoloadStart

◆ SEG_DATA_END

#define SEG_DATA_END   (uintptr_t) & _data_segment2SegmentRomEnd[0]

◆ SEG_DATA_START

#define SEG_DATA_START   (uintptr_t) & _data_segment2SegmentRomStart[0]

◆ SEG_ENDING

#define SEG_ENDING   (uintptr_t) 0x80280000

◆ SEG_ENDING_ROM_SIZE

#define SEG_ENDING_ROM_SIZE   (size_t) ALIGN16((ptrdiff_t) (&_endingSegmentRomEnd[0] - &_endingSegmentRomStart[0]))

◆ SEG_ENDING_ROM_START

#define SEG_ENDING_ROM_START   (u8*) &_endingSegmentRomStart[0]

◆ SEG_ENDING_SIZE

#define SEG_ENDING_SIZE   (size_t) 0xDF00

◆ SEG_RACING

#define SEG_RACING   (uintptr_t) 0x8028DF00

◆ SEG_RACING_ROM_SIZE

#define SEG_RACING_ROM_SIZE   (size_t) ALIGN16((ptrdiff_t) (&_racingSegmentRomEnd[0] - &_racingSegmentRomStart[0]))

◆ SEG_RACING_ROM_START

#define SEG_RACING_ROM_START   (u8*) &_racingSegmentRomStart[0]

◆ SEG_RACING_SIZE

#define SEG_RACING_SIZE   (size_t) 0x2C470

◆ SEG_START

#define SEG_START   0x80000000

mk64 has three code segments: main 0x80000400 ending 0x80280000 size 0xDF00 race 0x8028DF00 size 0x2C470

◆ STARTUP_LOGO_ROM_END

#define STARTUP_LOGO_ROM_END   &_startupLogoSegmentRomEnd[0]

◆ STARTUP_LOGO_ROM_START

#define STARTUP_LOGO_ROM_START   &_startupLogoSegmentRomStart[0]

◆ TRIG_TABLES

#define TRIG_TABLES   (uintptr_t) 0x802BA370

◆ TRIG_TABLES_ROM_START

#define TRIG_TABLES_ROM_START   (uintptr_t) & _trigTablesSegmentRomStart[0]

◆ TRIG_TABLES_SIZE

#define TRIG_TABLES_SIZE   (size_t) 0x5810

Variable Documentation

◆ _ceremonyDataSegmentRomEnd

u8 _ceremonyDataSegmentRomEnd[]
extern

◆ _ceremonyDataSegmentRomStart

u8 _ceremonyDataSegmentRomStart[]
extern

◆ _common_texturesSegmentRomEnd

u8 _common_texturesSegmentRomEnd[]
extern

◆ _common_texturesSegmentRomStart

u8 _common_texturesSegmentRomStart[]
extern

◆ _data_segment2SegmentRomEnd

u8 _data_segment2SegmentRomEnd[]
extern

◆ _data_segment2SegmentRomStart

u8 _data_segment2SegmentRomStart[]
extern

◆ _endingSegmentNoloadEnd

u8 _endingSegmentNoloadEnd[]
extern

◆ _endingSegmentRomEnd

u8 _endingSegmentRomEnd[]
extern

◆ _endingSegmentRomStart

u8 _endingSegmentRomStart[]
extern

◆ _endingSegmentStart

u8 _endingSegmentStart[]
extern

◆ _memoryPoolSegmentNoloadEnd

u8 _memoryPoolSegmentNoloadEnd[]
extern

◆ _memoryPoolSegmentNoloadStart

u8 _memoryPoolSegmentNoloadStart[]
extern

◆ _racingSegmentNoloadEnd

u8 _racingSegmentNoloadEnd[]
extern

◆ _racingSegmentRomEnd

u8 _racingSegmentRomEnd[]
extern

◆ _racingSegmentRomStart

u8 _racingSegmentRomStart[]
extern

◆ _racingSegmentStart

u8 _racingSegmentStart[]
extern

◆ _startupLogoSegmentRomEnd

u8 _startupLogoSegmentRomEnd[]
extern

◆ _startupLogoSegmentRomStart

u8 _startupLogoSegmentRomStart[]
extern

◆ _trigTablesSegmentRomStart

u8 _trigTablesSegmentRomStart[]
extern

◆ _trigTablesSegmentSize

u8 _trigTablesSegmentSize[]
extern

◆ _trigTablesSegmentStart

u8 _trigTablesSegmentStart[]
extern