public
Description: A Nintendo Gameboy and Gameboy Color emulator for the Apple iPhone and iPod Touch.
Homepage: http://www.zodttd.com
Clone URL: git://github.com/zodttd/gameboy4iphone.git
Click here to lend your support to: gameboy4iphone and make a donation at www.pledgie.com !
gameboy4iphone / defs.h
100644 50 lines (30 sloc) 0.614 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef __DEFS_H__
#define __DEFS_H__
 
 
#define IS_LITTLE_ENDIAN
 
//#include <stdio.h>
//#include <math.h>
//#include <stdlib.h>
 
//#define INLINE static __inline
 
#undef byte
#undef word
 
#ifdef IS_LITTLE_ENDIAN
#define LO 0
#define HI 1
#else
#define LO 1
#define HI 0
#endif
 
//ifndef GP32
typedef unsigned char byte;
//endif
 
typedef unsigned char un8;
typedef unsigned short un16;
typedef unsigned int un32;
 
typedef signed char n8;
typedef signed short n16;
typedef signed int n32;
 
//ifndef GP32
typedef un16 word;
//endif
typedef word addr;
 
 
 
 
 
#endif