c0.inc
上传用户:super_houu
上传日期:2008-09-21
资源大小:4099k
文件大小:2k
- .xlist
- ;
- ; Assembly language definitions for Paradigm C++
- ; Copyright (C) 1996, 1997 Paradigm Systems. All rights reserved.
- ;
- ; $Revision: 11 $
- ; $NoKeywords: $
- ;
- ; *********************************************************************
- ; Permission to modify and distribute object files based on this
- ; source code is granted to licensed users of Paradigm C++.
- ;
- ; Under no circumstances is this source code to be re-distributed
- ; without the express permission of Paradigm Systems.
- ; *********************************************************************
- ;
- ; This include file helps set the memory model variables and defines
- ; data structures used by Paradigm C++ assembly language modules.
- ;
- IFDEF ??Version ; Check for PASM
- NOWARN RES ; Turn off reserved words warnings
- NOWARN PDC ; Disable pass 1 warnings for PASM
- NOWARN MCP ; Disable warning for extra MASM compatibility passes
- ENDIF ; ??Version
- ;
- ; This macro is used to display comments during assembly
- ;
- SHOW macro msg
- IFDEF ??Version ; Check if PASM is doing the work
- ENDIF ; ??Version
- NOWARN PDC
- IF1
- %out msg
- ENDIF ; IF1
- IFDEF ??Version
- ENDIF ; ??Version
- endm
- ;
- ; Determine the memory module begin used and define values which can
- ; be tested later. This section appears after the default segment
- ; declarations to avoid any problems with changing the default alignment
- ; characteristics.
- ;
- IFDEF __s__
- @CodeSize = 0
- @DataSize = 0
- pptr equ near ptr
- SHOW <Assembling for the small memory model>
- ELSEIFDEF __m__
- @CodeSize = 1
- @DataSize = 0
- pptr equ far ptr
- SHOW <Assembling for the medium memory model>
- ELSEIFDEF __c__
- @CodeSize = 0
- @DataSize = 1
- pptr equ near ptr
- SHOW <Assembling for the compact memory model>
- ELSEIFDEF __l__
- @CodeSize = 1
- @DataSize = 1
- pptr equ far ptr
- SHOW <Assembling for the large memory model>
- ELSEIFDEF __h__
- @CodeSize = 2
- @DataSize = 2
- pptr equ far ptr
- SHOW <Assembling for the huge memory model>
- ELSE
- @CodeSize = 0
- @DataSize = 0
- pptr equ near ptr
- SHOW <Assembler error: Missing memory model macro definition>
- .ERR
- ENDIF ; IFDEF
- ;
- ; Initializer/terminator structure format. This is used by the
- ; startup code to automatically initialize run-time library packages.
- ;
- InitRec struc
- ctype db ? ; 0=near, 1=far, 0ffh=not used
- pri db ? ; 0=highest, 0ffh=lowest
- foff dw ? ; Function offset
- fseg dw ? ; Function segment
- InitRec ends
- .list