8 #define uint8 unsigned char
\r
9 #define uint16 unsigned short
\r
10 #define uint32 unsigned int
\r
11 #define int8 signed char
\r
12 #define int16 signed short
\r
13 #define int32 signed int
\r
15 #define READ_BYTE(BASE, ADDR) (BASE)[(ADDR)^1]
\r
16 #define WRITE_BYTE(BASE, ADDR, VAL) (BASE)[(ADDR)^1] = (VAL)
\r
18 #define load_param(param, size) \
\r
19 memcpy(param, &state[bufferptr], size); \
\r
22 #define save_param(param, size) \
\r
23 memcpy(&state[bufferptr], param, size); \
\r