mirror of
https://github.com/nippur72/apple1-videocard-lib.git
synced 2025-01-08 16:31:06 +00:00
15 lines
350 B
C
15 lines
350 B
C
#define POKE(a,b) (*((byte *)(a))=(byte)(b))
|
|
#define PEEK(a) (*((byte *)(a)))
|
|
|
|
#define HIBYTE(c) (>(c))
|
|
#define LOBYTE(c) (<(c))
|
|
|
|
#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
|