mirror of
https://github.com/nippur72/apple1-videocard-lib.git
synced 2025-01-02 23:31:53 +00:00
21 lines
423 B
C
21 lines
423 B
C
#ifndef UTILS_H
|
|
#define UTILS_H
|
|
|
|
#define POKE(a,b) (*((byte *)(a))=(byte)(b))
|
|
#define PEEK(a) (*((byte *)(a)))
|
|
|
|
#define HIBYTE(c) (BYTE1(c))
|
|
#define LOBYTE(c) (BYTE0(c))
|
|
#define EXPORT __export
|
|
|
|
#define NOP asm { nop }
|
|
|
|
#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
|
|
|
|
#endif
|