-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added and cleaned up type definitions. Added quemu run target.
- Loading branch information
Showing
3 changed files
with
25 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,26 @@ | ||
#ifndef __TYPES_H__ | ||
#define __TYPES_H__ | ||
|
||
#define _TRUE 1==1 | ||
#define _FALSE !_TRUE | ||
#define LANG_C "C" | ||
#define HIGH_BYTE 0xFF00 | ||
#define VRAM_ADDRS (uint16_t*)0xB8000 | ||
|
||
typedef void (*f_ctor)(); | ||
|
||
typedef unsigned char _boolean; | ||
|
||
typedef char int8_t; | ||
typedef unsigned char uint8_t; | ||
|
||
typedef short int16_t; | ||
typedef unsigned short uint16_t; | ||
|
||
typedef int int32_t; | ||
typedef unsigned int uint32_t; | ||
|
||
typedef long long int int64_t; | ||
typedef unsigned long long int uin64_t; | ||
|
||
#endif |