mirror of
https://github.com/zeldaret/oot.git
synced 2025-02-22 23:26:58 +00:00
11 lines
262 B
C
11 lines
262 B
C
#ifndef SEGMENTED_ADDRESS_H
|
|
#define SEGMENTED_ADDRESS_H
|
|
|
|
#include "ultra64/mbi.h"
|
|
#include "stdint.h"
|
|
|
|
extern uintptr_t gSegments[NUM_SEGMENTS];
|
|
|
|
#define SEGMENTED_TO_VIRTUAL(addr) (void*)(gSegments[SEGMENT_NUMBER(addr)] + SEGMENT_OFFSET(addr) + K0BASE)
|
|
|
|
#endif
|