/* pseudo functions to peek/poke byte or word. Written by Peter Wu. 6/5/86.
** Use /ze option when compiling.
*/

#define acc(seg,off) ((long) (seg) << 16 | (unsigned short) (off))
#define peekb(seg,off) (*(unsigned char far *)acc(seg,off))
#define pokeb(seg,off,val) (*(char far *)acc(seg,off) = (val))
#define peekw(seg,off) (*(short far *)acc(seg,off))
#define pokew(seg,off,val) (*(short far *)acc(seg,off) = (val))
