⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 metlinks.h

📁 nucleus 文件系统,内核和彩色图形系统,在小系统上非常好用
💻 H
字号:
/*************************************************************************/
/*                                                                       */
/*         Copyright (c) 1997 - 1999 Accelerated Technology, Inc.        */
/*                                                                       */
/* PROPRIETARY RIGHTS of Accelerated Technology are involved in the      */
/* subject matter of this material.  All manufacturing, reproduction,    */
/* use, and sales rights pertaining to this subject matter are governed  */
/* by the license agreement.  The recipient of this software implicitly  */
/* accepts the terms of the license.                                     */
/*                                                                       */
/*************************************************************************/

/*************************************************************************/
/*                                                                       */
/* FILE NAME                                            VERSION          */
/*                                                                       */
/*      metlinks.h                                       1.9             */
/*                                                                       */
/* COMPONENT                                                             */
/*                                                                       */
/*      All                                                              */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      Various assembler related flags.  Not sure that this is even     */
/*needed at this time.                                                   */
/*                                                                       */
/* AUTHOR                                                                */
/*                                                                       */
/*      Robert G. Burrill, Accelerated Technology, Inc.                  */
/*                                                                       */
/* DATA STRUCTURES                                                       */
/*                                                                       */
/*      None                                                             */
/*                                                                       */
/* FUNCTIONS                                                             */
/*                                                                       */
/*      None                                                             */
/*                                                                       */
/* DEPENDENCIES                                                          */
/*                                                                       */
/*      None                                                             */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*         NAME            DATE                    REMARKS               */
/*                                                                       */
/*                                                                       */
/*************************************************************************/

#define PHAR386		yes 

#define PROT286		no  
#define PROT386		yes 
#define CPU186		no  
#define CPU286		no  
#define CPU386		yes 
	/*386*/	    

/* Size and type defines for this environment */
#define TYPEINT		long	  /* INTEGER */
#define SIZEINT      4        /* bytes */
#define BITSINT      32       /* bits */
#define SSHFINT      2        /* divide/multiply by SIZEINT shift count */
#define BSHFINT      4        /* divide/multiply by BITSINT shift count */

#define TYPELONG	long	  /* LONG */
#define SIZELONG     4        /* bytes */
#define TYPEDPTR	long	  /* DATA POINTER (short or far) */
#define SIZEDPTR     4        /* bytes */
#define YPEFPTR		long	  /* FAR POINTER */
#define SIZEFPTR     4        /* bytes */
#define TYPEPPTR	long	  /* PROCEDURE POINTER */
#define SIZEPPTR     4        /* bytes */
#define TYPEBOOL	long	  /* BOOLEAN */
#define SIZEBOOL     4        /* bytes */

#define byte		unsigned char	/* 8-bit unsigned */
#define sbyte		signed char		/* 8-bit signed */
#define word		unsigned short	/* 16-bit unsigned */

/*  Comment around this 
; Registers to save on entry, mapped as: |es|ds|dn|sn|de|ce|be|ae|<- bit 0
RSVREGS  equ   00110010b    ;reserved registers (sn, dn, be)
NEARPROC equ   yes  ;true if procedures are to be near calls
ARGSREV  equ   no   ;true if args are pushed Pascal style (reversed)
POPARGS  equ   no   ;true if function is to clean args off stack
NAMES8   equ   no   ;true if need short names also made public
PASSTR	 equ   no   ;true if Pascal style strings 		
PASM	 equ   no   ;true if assembler is Phar Lap

	if	PASM
DEFINT   equ    dd   
DEFLONG  equ    dd   
DEFDPTR  equ    dd   
DEFFPTR  equ    dd   
DEFPPTR  equ    dd   
DEFBOOL  equ    dd   
	endif;


;Define CSEG, ENDCSEG, DSEG, and ENDDSEG macros for this environment

CSEG    macro   NAM1,NAM2, A1,A2, B1,B2, C1,C2, D1,D2, E1,E2, F1,F2, G1,G2, H1,H2, I1,I2, J1,J2, K1,K2
      EXTERNAL  A1,A2,B1,B2,C1,C2,D1,D2,E1,E2,F1,F2,G1,G2,H1,H2,I1,I2,J1,J2,K1,K2
_CODE segment dword use32 public 'CODE'
        assume  cs:_CODE
        endm   ;CSEG

ENDCSEG macro   NAM1,NAM2        ;Macro to End Code-Segment
_CODE ends
        endm   ;ENDCSEG


DSEG    macro   NAM1,NAM2        ;Macro to Define Data Segment
NAM1&NAM2  segment  dword use32 common 'DATA'
	assume ds:NAM1&NAM2
	endm   ;DSEG


ENDDSEG macro   NAM1,NAM2         ;Macro to End Data-Segment
NAM1&NAM2 ends
        endm   ;ENDDSEG
*/

#define BARS(str1, str2) (str2 str1) 

/* #define ICSETUP				 noop macro for C - only used by Pascal */
/* #define ICREST				 noop macro for C - only used by Pascal */

/* MetaWINDOW PRODUCT DEFINITIONS */

#define ErrChecks 		yes  /* include error checking	? */

#define MW_STD			yes	 /* add support for SuperVGA */

#define REMOVE_8514		yes	 /* don't link in 8514 driver */
#define REMOVE_16BIT	yes	 /* don't link in 16 bit driver */
#define REMOVE_24BIT	yes	 /* don't link in 24 bit driver */

#define mk_dpl			no	 /* make a device procedure list ? */

#define XEGIA			no	 /* use XEGIA files rather than BIOS ? */


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -