pokeemerald/include/global.h

38 lines
710 B
C
Raw Normal View History

2016-01-08 09:08:16 +00:00
#ifndef GUARD_GLOBAL_H
#define GUARD_GLOBAL_H
2016-01-03 14:40:10 +00:00
typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned int u32;
typedef signed char s8;
typedef signed short s16;
typedef signed int s32;
2016-01-08 07:27:40 +00:00
typedef volatile u8 vu8;
typedef volatile u16 vu16;
typedef volatile u32 vu32;
typedef volatile s8 vs8;
typedef volatile s16 vs16;
typedef volatile s32 vs32;
typedef float f32;
typedef double f64;
2016-01-03 14:40:10 +00:00
typedef u8 bool8;
typedef u16 bool16;
typedef u32 bool32;
#define NULL (void *)0
#define TRUE 1
#define FALSE 0
2016-01-08 07:27:40 +00:00
#include "io_regs.h"
2016-01-03 14:40:10 +00:00
#define CPU_SET_SRC_FIX (1 << 24)
#define CPU_SET_32BIT (1 << 26)
extern void CpuSet(void *src, void *dest, u32 controlData);
2016-01-08 09:08:16 +00:00
#endif // GUARD_GLOBAL_H