|
|
DataMuseum.dkPresents historical artifacts from the history of: RegneCentralen RC759 "Piccoline" |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RegneCentralen RC759 "Piccoline" Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 5248 (0x1480)
Types: TextFile
Names: »MACHINE.H«
└─⟦33b70227c⟧ Bits:30003931/GEM_Develop_disk_3_CDOS.imd Disketter indleveret af Steffen Jensen (Piccolo/Piccoline)
└─⟦this⟧ »MACHINE.H«
└─⟦f18477172⟧ Bits:30003931/GEM_Develop_disk_1_CDOS.imd Disketter indleveret af Steffen Jensen (Piccolo/Piccoline)
└─⟦this⟧ »SAMP\MACHINE.H«
/* MACHINE.H 09/29/84-02/08/85 Lee Lorenzen */ /* GEM DEVELOPER KIT 06/07/86 Lowell Webster */ #define PCDOS 1 /* IBM PC DOS */ #define GEMDOS 0 /* DRI GEM DOS */ #define HILO 0 /* how bytes are stored */ #ifndef I8086 #define I8086 1 /* Intel 8086/8088 */ #endif #define MC68K 0 /* Motorola 68000 */ #define ALCYON 0 /* Alcyon C Compiler */ /* in TCRTL.C */ EXTERN BYTE *strcpy(); EXTERN BYTE *strcat(); EXTERN BYTE *strscn(); /* in LONGASM.ASM */ /* 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(); /* move bytes into wds*/ /* from src long ptr to*/ /* dst long ptr i.e., */ /* until a null is */ /* encountered, then */ /* num moved is returned*/ /* LBWMOV(dwlp, sblp)*/ EXTERN WORD LBWMOV(); EXTERN WORD LSTCPY(); /* 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) /* 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 low byte of */ /* a word value */ #define LLOBT(x) ((BYTE)(x & 0x00ff)) /* return high byte of */ /* a word value */ #define LHIBT(x) ((BYTE)( (x >> 8) & 0x00ff)) /************************************************************************/ #if I8086 /* return long address */ /* of short ptr */ EXTERN LONG ADDR(); /* return long address */ /* of the data seg */ EXTERN LONG LLDS(); /* return long address */ /* of the code seg */ EXTERN LONG LLCS(); /* return a single byte */ /* pointed at by long */ /* ptr */ EXTERN BYTE LBGET(); /* set a single byte */ /* pointed at by long */ /* ptr, LBSET(lp, bt) */ EXTERN BYTE LBSET(); /* return a single word */ /* pointed at by long */ /* ptr */ EXTERN WORD LWGET(); /* set a single word */ /* pointed at by long */ /* ptr, LWSET(lp, bt) */ EXTERN WORD LWSET(); /* return a single long */ /* pointed at by long */ /* ptr */ EXTERN LONG LLGET(); /* set a single long */ /* pointed at by long */ /* ptr, LLSET(lp, bt) */ EXTERN LONG LLSET(); /* return 0th byte of */ /* a long value given */ /* a short pointer to */ /* the long value */ #define LBYTE0(x) (*x) /* return 1st byte of */ /* a long value given */ /* a short pointer to */ /* the long value */ #define LBYTE1(x) (*(x+1)) /* return 2nd byte of */ /* a long value given */ /* a short pointer to */ /* the long value */ #define LBYTE2(x) (*(x+2)) /* return 3rd byte of */ /* a long value given */ /* a short pointer to */ /* the long value */ #define LBYTE3(x) (*(x+3)) #endif /************************************************************************/ #if MC68K /* return a long address*/ /* of a short pointer */ #define ADDR /**/ /* 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)) #endif «eof»