mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-09-19 04:39:42 +02:00
30 lines
444 B
C
30 lines
444 B
C
#undef uint8
|
|
#undef uint16
|
|
#undef uint32
|
|
#undef int8
|
|
#undef int16
|
|
#undef int32
|
|
|
|
#define uint8 unsigned char
|
|
#define uint16 unsigned short
|
|
#define uint32 unsigned int
|
|
#define int8 signed char
|
|
#define int16 signed short
|
|
#define int32 signed int
|
|
|
|
typedef union
|
|
{
|
|
uint16 w;
|
|
struct
|
|
{
|
|
#ifdef LSB_FIRST
|
|
uint8 l;
|
|
uint8 h;
|
|
#else
|
|
uint8 h;
|
|
uint8 l;
|
|
#endif
|
|
} byte;
|
|
|
|
} reg16_t;
|