diff options
Diffstat (limited to 'apps/plugins/rockboy/defs.h')
-rw-r--r-- | apps/plugins/rockboy/defs.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/apps/plugins/rockboy/defs.h b/apps/plugins/rockboy/defs.h new file mode 100644 index 0000000000..4c520ef698 --- /dev/null +++ b/apps/plugins/rockboy/defs.h | |||
@@ -0,0 +1,36 @@ | |||
1 | |||
2 | |||
3 | |||
4 | #ifndef __DEFS_H__ | ||
5 | #define __DEFS_H__ | ||
6 | |||
7 | #include "rockmacros.h" | ||
8 | |||
9 | #ifdef LITTLE_ENDIAN | ||
10 | #define LO 0 | ||
11 | #define HI 1 | ||
12 | #else | ||
13 | #define LO 1 | ||
14 | #define HI 0 | ||
15 | #endif | ||
16 | |||
17 | |||
18 | typedef unsigned char byte; | ||
19 | |||
20 | typedef unsigned char un8; | ||
21 | typedef unsigned short un16; | ||
22 | typedef unsigned int un32; | ||
23 | |||
24 | typedef signed char n8; | ||
25 | typedef signed short n16; | ||
26 | typedef signed int n32; | ||
27 | |||
28 | typedef un16 word; | ||
29 | typedef word addr; | ||
30 | |||
31 | |||
32 | |||
33 | |||
34 | |||
35 | #endif | ||
36 | |||