gbdk-releases/gbdk-lib/include/asm/gbz80/types.h

41 lines
675 B
C
Raw Permalink Normal View History

2015-01-10 16:25:08 +01:00
/** @file asm/gbz80/types.h
Types definitions for the gb.
*/
2015-01-10 16:25:06 +01:00
#ifndef ASM_GBZ80_TYPES_INCLUDE
#define ASM_GBZ80_TYPES_INCLUDE
#if SDCC_PORT!=gbz80
#error gbz80 only.
#endif
2015-01-10 16:25:08 +01:00
#define NONBANKED nonbanked
2015-01-10 16:25:09 +01:00
#define BANKED banked
2015-01-10 16:25:08 +01:00
2015-01-10 16:25:08 +01:00
/** Signed eight bit.
*/
2015-01-10 16:25:06 +01:00
typedef char INT8;
2015-01-10 16:25:08 +01:00
/** Unsigned eight bit.
*/
2015-01-10 16:25:06 +01:00
typedef unsigned char UINT8;
2015-01-10 16:25:08 +01:00
/** Signed sixteen bit.
*/
2015-01-10 16:25:06 +01:00
typedef int INT16;
2015-01-10 16:25:08 +01:00
/** Unsigned sixteen bit.
*/
2015-01-10 16:25:06 +01:00
typedef unsigned int UINT16;
2015-01-10 16:25:08 +01:00
/** Signed 32 bit.
*/
2015-01-10 16:25:06 +01:00
typedef long INT32;
2015-01-10 16:25:08 +01:00
/** Unsigned 32 bit.
*/
2015-01-10 16:25:06 +01:00
typedef unsigned long UINT32;
typedef int size_t;
2015-01-10 16:25:08 +01:00
/** Returned from clock
@see clock
*/
2015-01-10 16:25:06 +01:00
typedef UINT16 clock_t;
#endif