2021-12-22 14:11:55 +00:00
|
|
|
#ifndef UTILS_H
|
|
|
|
#define UTILS_H
|
|
|
|
|
2021-12-08 11:53:13 +00:00
|
|
|
#define POKE(a,b) (*((byte *)(a))=(byte)(b))
|
|
|
|
#define PEEK(a) (*((byte *)(a)))
|
|
|
|
|
2021-12-23 13:28:59 +00:00
|
|
|
#define HIBYTE(c) (BYTE1(c))
|
|
|
|
#define LOBYTE(c) (BYTE0(c))
|
|
|
|
#define EXPORT __export
|
2021-12-08 11:53:13 +00:00
|
|
|
|
|
|
|
#define NOP asm { nop }
|
2021-12-17 15:47:58 +00:00
|
|
|
|
|
|
|
#ifndef __KICKC__
|
|
|
|
// KickC defaults these, while other C compilers do not
|
|
|
|
// this makes syntax highlight work in common C editors
|
|
|
|
typedef unsigned char byte;
|
|
|
|
typedef unsigned int word;
|
|
|
|
#endif
|
2021-12-22 14:11:55 +00:00
|
|
|
|
|
|
|
#endif
|