Simple Operating System
types.h File Reference

useful macros, definitions, enums etc. More...

#include <stdbool.h>
#include <stdint.h>
Include dependency graph for types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NULL   ((void *) 0)
 pointer to NULL More...
 
#define DEBUG   asm("xchg bx,bx");
 debug breakpoint in Bochs
 
#define __start   __attribute__((section("start")))
 Must be before main function of program to put this function as first in binary file.
 

Typedefs

typedef unsigned char Byte
 
typedef unsigned short Word
 
typedef unsigned int size_t
 

Enumerations

enum  Color {
  Black = 0 , Blue , Green , Cyan ,
  Red , Magenta , Brown , LightGrey ,
  DarkGrey , LightBlue , LightGreen , LightCyan ,
  LightRed , LightMagenta , LightBrown , White
}
 

Detailed Description

useful macros, definitions, enums etc.

Definition in file types.h.

Macro Definition Documentation

◆ NULL

#define NULL   ((void *) 0)

pointer to NULL

Todo:
Make 0th Byte always zero for safety reason

Definition at line 22 of file types.h.