home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
files
/
telecomm
/
ig217src
/
peekpoke.h
< prev
Wrap
Text File
|
1992-04-18
|
1KB
|
41 lines
/*** peek/poke header 12/5/88 by the Little Green Man
These are for convience sake you need to be
in supervisor mode to use these.
*****************************************************/
/*>>>> PEEKS SECTION <<<<*/
/* int peekb(bp) char *bp; (peek at a byte) */
#define peekb(cp) (*((char *)cp))
/*-----------------------------------------------*/
/* long peekl(lp) long *lp; (peek at a long, 4 bytes) */
#define peekl(lp) (*((long *)lp))
/*----------------------------------------------------------*/
/* int peekw(wp) int *wp; (peek at a word, 2 bytes) */
#define peekw(wp) (*((int *)wp))
/*----------------------------------------------------------*/
/*>>>> POKES SECTION <<<<*/
/* int pokeb(bp,b) char *bp; int b; */
#define pokeb(cp,c) (*((char *)cp) = c)
/*----------------------------------------------------------*/
/* long pokel(lp,l) long *lp, l; */
#define pokel(lp,l) (*((long *)lp) = l)
/*----------------------------------------------------------*/
/* int pokew(wp,w) int *wp, w; */
#define pokew(wp,w) (*((int *)wp) = w)
/*-----------------------------------------------------------*/