Mario Kart 64
Loading...
Searching...
No Matches
mbi.h File Reference
#include <PR/gbi.h>
#include <PR/abi.h>
Include dependency graph for mbi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _SHIFTL(v, s, w)   ((unsigned int) (((unsigned int) (v) & ((0x01 << (w)) - 1)) << (s)))
 
#define _SHIFTR(v, s, w)   ((unsigned int) (((unsigned int) (v) >> (s)) & ((0x01 << (w)) - 1)))
 
#define _SHIFT   _SHIFTL /* old, for compatibility only */
 
#define G_ON   (1)
 
#define G_OFF   (0)
 
#define M_GFXTASK   1
 
#define M_AUDTASK   2
 
#define M_VIDTASK   3
 
#define M_HVQTASK   6
 
#define M_HVQMTASK   7
 
#define NUM_SEGMENTS   (16)
 
#define SEGMENT_OFFSET(a)   ((unsigned int) (a) & 0x00ffffff)
 
#define SEGMENT_NUMBER(a)   (((unsigned int) (a) << 4) >> 28)
 
#define SEGMENT_NUMBER2(a)   ((unsigned int) (a) >> 24)
 
#define SEGMENT_ADDR(num, off)   (((num) << 24) + (off))
 
#define NULL   0
 

Macro Definition Documentation

◆ _SHIFT

#define _SHIFT   _SHIFTL /* old, for compatibility only */

◆ _SHIFTL

#define _SHIFTL ( v,
s,
w )   ((unsigned int) (((unsigned int) (v) & ((0x01 << (w)) - 1)) << (s)))

◆ _SHIFTR

#define _SHIFTR ( v,
s,
w )   ((unsigned int) (((unsigned int) (v) >> (s)) & ((0x01 << (w)) - 1)))

◆ G_OFF

#define G_OFF   (0)

◆ G_ON

#define G_ON   (1)

◆ M_AUDTASK

#define M_AUDTASK   2

◆ M_GFXTASK

#define M_GFXTASK   1

◆ M_HVQMTASK

#define M_HVQMTASK   7

◆ M_HVQTASK

#define M_HVQTASK   6

◆ M_VIDTASK

#define M_VIDTASK   3

◆ NULL

#define NULL   0

◆ NUM_SEGMENTS

#define NUM_SEGMENTS   (16)

◆ SEGMENT_ADDR

#define SEGMENT_ADDR ( num,
off )   (((num) << 24) + (off))

◆ SEGMENT_NUMBER

#define SEGMENT_NUMBER ( a)    (((unsigned int) (a) << 4) >> 28)

◆ SEGMENT_NUMBER2

#define SEGMENT_NUMBER2 ( a)    ((unsigned int) (a) >> 24)

◆ SEGMENT_OFFSET

#define SEGMENT_OFFSET ( a)    ((unsigned int) (a) & 0x00ffffff)