Simple Operating System
types.h
Go to the documentation of this file.
1 
5 #ifndef TYPES_H
6 #define TYPES_H
7 
8 #include <stdbool.h>
9 #include <stdint.h>
10 
11 typedef unsigned char Byte;
12 typedef unsigned short Word;
13 typedef unsigned int size_t;
14 
15 typedef enum {Black = 0, Blue, Green, Cyan, Red, Magenta, Brown, LightGrey, DarkGrey, LightBlue, LightGreen, LightCyan, LightRed, LightMagenta, LightBrown, White} Color;
16 
21 #ifndef NULL
22 #define NULL ((void *) 0)
23 #endif
24 
28 #ifndef DEBUG
29 #define DEBUG asm("xchg bx,bx");
30 #endif
31 
35 #define __start __attribute__((section("start")))
36 
37 #endif