GBDK 2020 Docs
API Documentation for GBDK 2020
types.h
Go to the documentation of this file.
1 
4 #ifndef ASM_TYPES_INCLUDE
5 #define ASM_TYPES_INCLUDE
6 
7 #if SDCC_PORT == gbz80
8 #include <asm/gbz80/types.h>
9 #elif SDCC_PORT == z80
10 #include <asm/z80/types.h>
11 #else
12 #error Unrecognised port
13 #endif
14 
15 #ifndef NONBANKED
16 #define NONBANKED
17 #endif
18 #ifndef BANKED
19 #define BANKED
20 #endif
21 #ifndef CRITICAL
22 #define CRITICAL
23 #endif
24 #ifndef INTERRUPT
25 #define INTERRUPT
26 #endif
27 
30 typedef INT8 BOOLEAN;
31 
32 #if BYTE_IS_UNSIGNED
33 
34 typedef UINT8 BYTE;
35 typedef UINT16 WORD;
36 typedef UINT32 DWORD;
37 
38 #else
39 
42 typedef INT8 BYTE;
45 typedef UINT8 UBYTE;
47 typedef INT16 WORD;
49 typedef UINT16 UWORD;
51 typedef INT32 LWORD;
53 typedef UINT32 ULWORD;
55 typedef INT32 DWORD;
57 typedef UINT32 UDWORD;
58 
60 typedef union _fixed {
61  struct {
64  } b;
67 
68 #endif
69 
70 #endif
UINT8
unsigned char UINT8
Definition: types.h:21
INT16
signed int INT16
Definition: types.h:24
UINT16
unsigned int UINT16
Definition: types.h:27
fixed
union _fixed fixed
DWORD
INT32 DWORD
Definition: types.h:55
BYTE
INT8 BYTE
Definition: types.h:42
INT32
signed long INT32
Definition: types.h:30
UINT32
unsigned long UINT32
Definition: types.h:33
ULWORD
UINT32 ULWORD
Definition: types.h:53
types.h
_fixed::w
UWORD w
Definition: types.h:65
UBYTE
UINT8 UBYTE
Definition: types.h:45
UDWORD
UINT32 UDWORD
Definition: types.h:57
WORD
INT16 WORD
Definition: types.h:47
_fixed::l
UBYTE l
Definition: types.h:62
BOOLEAN
INT8 BOOLEAN
Definition: types.h:30
_fixed::h
UBYTE h
Definition: types.h:63
LWORD
INT32 LWORD
Definition: types.h:51
_fixed::b
struct _fixed::@0 b
UWORD
UINT16 UWORD
Definition: types.h:49
INT8
signed char INT8
Definition: types.h:18
_fixed
Definition: types.h:60