sgdk
|
Types definition. More...
Go to the source code of this file.
Classes | |
struct | Box |
Simple Box structure. More... | |
struct | Circle |
Simple Circle structure. More... | |
Defines | |
#define | FALSE 0 |
FALSE define (equivalent to 0). | |
#define | TRUE 1 |
TRUE define (equivalent to 1). | |
#define | NULL 0 |
NULL define (equivalent to 0). | |
#define | MIN_U8 0x00 |
#define | MAX_U8 0xFF |
#define | MIN_S8 -0x80 |
#define | MAX_S8 0x7F |
#define | MIN_U16 0x0000 |
#define | MAX_U16 0xFFFF |
#define | MIN_S16 -0x8000 |
#define | MAX_S16 0x7FFF |
#define | MIN_U32 0x0000 |
#define | MAX_U32 0xFFFFFFFF |
#define | MIN_S32 -0x80000000 |
#define | MAX_S32 0x7FFFFFFF |
#define | uint8_t u8 |
#define | int8_t s8 |
#define | uint16_t u16 |
#define | int16_t s16 |
#define | uint32_t u32 |
#define | int32_t s32 |
#define | FASTCALL |
Typedefs | |
typedef unsigned short | bool |
typedef char | s8 |
typedef short | s16 |
typedef long | s32 |
typedef unsigned char | u8 |
typedef unsigned short | u16 |
typedef unsigned long | u32 |
typedef volatile u16 | vbool |
typedef volatile s8 | vs8 |
typedef volatile s16 | vs16 |
typedef volatile s32 | vs32 |
typedef volatile u8 | vu8 |
typedef volatile u16 | vu16 |
typedef volatile u32 | vu32 |
typedef s16 | fix16 |
typedef s32 | fix32 |
typedef s16 | f16 |
typedef s32 | f32 |
typedef void | VoidCallback () |
Functions | |
u8 | getZeroU8 () |
u16 | getZeroU16 () |
u32 | getZeroU32 () |
u8 | rol8 (u8 value, u16 number) |
ROL instruction for byte (8 bit) value. | |
u16 | rol16 (u16 value, u16 number) |
ROL instruction for short (16 bit) value. | |
u32 | rol32 (u32 value, u16 number) |
ROL instruction for long (32 bit) value. | |
u8 | ror8 (u8 value, u16 number) |
ROR instruction for byte (8 bit) value. | |
u16 | ror16 (u16 value, u16 number) |
ROR instruction for short (16 bit) value. | |
u32 | ror32 (u32 value, u16 number) |
ROR instruction for long (32 bit) value. |
Types definition.
SGDK Types definition.
boolean type, to be used with TRUE and FALSE constant. (internally set as unsigned short)
16 bits fixed point type (short version).
32 bits fixed point type (short version).
16 bits fixed point type.
32 bits fixed point type.
16 bits signed integer (equivalent to short).
32 bits signed integer (equivalent to long).
8 bits signed integer (equivalent to char).
16 bits unsigned integer (equivalent to unsigned short).
32 bits unsigned integer (equivalent to unsigned long).
8 bits unsigned integer (equivalent to unsigned char).
volatile boolean type. (internally set as volatile unsigned short)
volatile 16 bits signed integer.
volatile 32 bits signed integer.
volatile 8 bits signed integer.
volatile 16 bits unsigned integer.
volatile 32 bits unsigned integer.
volatile 8 bits unsigned integer.
ROL instruction for short (16 bit) value.
value | value to apply bit rotation |
number | number of bit rotation |
ROL instruction for long (32 bit) value.
value | value to apply bit rotation |
number | number of bit rotation |
ROL instruction for byte (8 bit) value.
value | value to apply bit rotation |
number | number of bit rotation |
ROR instruction for short (16 bit) value.
value | value to apply bit rotation |
number | number of bit rotation |
ROR instruction for long (32 bit) value.
value | value to apply bit rotation |
number | number of bit rotation |