/* ************************************************************************* * Revision Control System * ======================================================================= * $Revision: 2.2 $ $Source: /u2/MRS/osrevisions/aes/machine.h,v $ * ======================================================================= * $Author: mui $ $Date: 89/04/26 18:29:04 $ $Locker: kbad $ * ======================================================================= * $Log: machine.h,v $ * Revision 2.2 89/04/26 18:29:04 mui * TT * * Revision 2.1 89/02/22 05:02:47 kbad * *** TOS 1.4 FINAL RELEASE VERSION *** * * Revision 1.5 89/02/16 18:01:27 kbad * Moved M132 define here from flavor.h * * Revision 1.4 88/09/08 18:52:58 kbad * Moved build-specific stuff to flavor.h * * * Revision 1.3 88/08/02 13:02:49 kbad * Set with parameters of 1.04d 8/1/88 build * add DENMARK, fix NORWAY, FINLAND * * Revision 1.2 88/07/15 16:07:50 mui * add flag DOWARNING to do AES startup alert box * * Revision 1.1 88/06/02 12:35:52 lozben * Initial revision * ************************************************************************* */ /* MACHINE.H 09/29/84 - 10/09/84 Lee Lorenzen * for 68k 10/10/84 - 04/22/85 Lowell Webster * Update 05/07/85 Derek Mui * Add more define 07/12/85 Derek Mui * add MULRES 3/25/86 Derek Mui * add SWISSGER & SWISSFRA defines 8/3/87 Slavik Lozben * add MEXICO defines 9/28/87 Slavik Lozben * Clean up 11/23/87 Derek Mui * Added 132 column switch 12/18/87 D.Mui * add FINLAND 1/8/88 D.Mui */ #define M132 0 /* 132 column screen, or??? */ #define ATARI 1 /* for ATARI ST series */ #define CARTRIDGE 1 /* if rom cartridge exists */ #define MULRES 0 /* 6 resolutions */ #define PCDOS 0 /* IBM PC DOS */ #define CPM 0 /* CP/M version 2.2 */ #define GEMDOS 1 /* GEM DOS */ #define ALCYON 1 /* Alcyon C Compiler */ #define LINKED 1 /* if desktop linked with gem */ #define UNLINKED 0 /* if desktop not linked with gem */ #define I8086 0 /* Intel 8086/8088 */ #define MC68K 1 /* Motorola 68000 */ #define HILO 1 /* how bytes are stored,*/ /* 0 for i8086, 1 for 68k */ /* coerce short ptr to */ /* low word of long */ #define LW(x) ( (LONG)((UWORD)(x)) ) /* coerce short ptr to */ /* high word of long */ #define HW(x) ((LONG)((UWORD)(x)) << 16) /* in OPTIMIZE.C */ EXTERN BYTE *strcpy(); EXTERN BYTE *strcat(); EXTERN BYTE *strscn(); /* in LARGE.A86 */ /* return length of */ /* string pointed at */ /* by long pointer */ EXTERN WORD LSTRLEN(); /* copy n words from */ /* src long ptr to */ /* dst long ptr i.e., */ /* LWCOPY(dlp, slp, n)*/ EXTERN WORD LWCOPY(); /* copy n words from */ /* src long ptr to */ /* dst long ptr i.e., */ /* LBCOPY(dlp, slp, n)*/ EXTERN BYTE LBCOPY(); EXTERN WORD LBWMOV(); EXTERN WORD LSTCPY(); /* return low word of */ /* a long value */ #define LLOWD(x) ((UWORD)(x)) /* return high word of */ /* a long value */ #define LHIWD(x) ((UWORD)(x >> 16)) /* return high byte of */ /* a word value */ /* added 12/03/84 */ #define LLOBT(x) ((BYTE)(x)) /* return 0th byte of */ /* a long value given */ /* a short pointer to */ /* the long value */ /* added 12/03/84 */ #define LHIBT(x) ((BYTE)(x >> 8)) /* return a long address*/ /* of a short pointer */ #define ADDR /**/ /* return long address */ /* of the data seg */ #define LLDS() (LONG)0 /* return long address */ /* of the code seg */ #define LLCS() (LONG)0 /* return a single byte */ /* pointed at by long */ /* ptr */ #define LBGET(x) ( (UBYTE) *((BYTE * )(x)) ) /* set a single byte */ /* pointed at by long */ /* ptr, LBSET(lp, bt) */ #define LBSET(x, y) ( *((BYTE *)(x)) = y) /* return a single word */ /* pointed at by long */ /* ptr */ #define LWGET(x) ( (WORD) *((WORD *)(x)) ) /* set a single word */ /* pointed at by long */ /* ptr, LWSET(lp, bt) */ #define LWSET(x, y) ( *((WORD *)(x)) = y) /* return a single long */ /* pointed at by long */ /* ptr */ #define LLGET(x) ( *((LONG *)(x))) /* set a single long */ /* pointed at by long */ /* ptr, LLSET(lp, bt) */ #define LLSET(x, y) ( *((LONG *)(x)) = y) /* return 0th byte of */ /* a long value given */ /* a short pointer to */ /* the long value */ #define LBYTE0(x) ( *((x)+3) ) /* return 1st byte of */ /* a long value given */ /* a short pointer to */ /* the long value */ #define LBYTE1(x) ( *((x)+2) ) /* return 2nd byte of */ /* a long value given */ /* a short pointer to */ /* the long value */ #define LBYTE2(x) ( *((x)+1) ) /* return 3rd byte of */ /* a long value given */ /* a short pointer to */ /* the long value */ #define LBYTE3(x) (*(x))