home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c100 / 3.ddi / STARTUP.ZIP / TCPP10.INC < prev    next >
Encoding:
Text File  |  1990-09-01  |  1.9 KB  |  73 lines

  1.     .xlist
  2. ;
  3. ;    Assembly language definitions for Turbo C++ 1.0, Version 1.00
  4. ;    Copyright (C) 1989, 1990 Paradigm Systems.  All rights reserved.
  5. ;
  6. ;    This include file helps set the memory model variables and defines
  7. ;    data structures used by Turbo C++ assembly language modules.
  8. ;
  9.  
  10. IFDEF    ??Version            ; Check for TASM
  11. NOWARN    RES                ; Turn off reserved words warnings
  12. NOWARN    PDC                ; Disable pass 1 warnings
  13. ENDIF    ; ??Version
  14.  
  15. IF1                    ; Pass 1 definitions
  16.     %out    Paradigm LOCATE Turbo C++ 1.0 Startup Support
  17.  
  18. ;
  19. ;    Determine the memory module begin used and define values which can
  20. ;    be tested later.  This section appears after the default segment
  21. ;    declarations to avoid any problems with changing the default alignment
  22. ;    characteristics.
  23. ;
  24. IFDEF        __S__
  25.     @CodeSize = 0
  26.     @DataSize = 0
  27.     pptr    equ    near ptr
  28.     %out    Assembling for the small memory model
  29. ELSEIFDEF    __C__
  30.     @CodeSize = 0
  31.     @DataSize = 1
  32.     pptr    equ    near ptr
  33.     %out    Assembling for the compact memory model
  34. ELSEIFDEF    __M__
  35.     @CodeSize = 1
  36.     @DataSize = 0
  37.     pptr    equ    far ptr
  38.     %out    Assembling for the medium memory model
  39. ELSEIFDEF    __L__
  40.     @CodeSize = 1
  41.     @DataSize = 1
  42.     pptr    equ    far ptr
  43.     %out    Assembling for the large memory model
  44. ELSEIFDEF    __H__
  45.     @CodeSize = 2
  46.     @DataSize = 2
  47.     pptr    equ    far ptr
  48.     %out    Assembling for the huge memory model
  49. ELSE    
  50.     @CodeSize = 0
  51.     @DataSize = 0
  52.     pptr    equ    near ptr
  53.     %out    No model specified - Assembling for the small memory model
  54. ENDIF    ; IFDEF
  55. ENDIF    ; IF1
  56.  
  57. IFDEF    ??Version            ; Check for TASM
  58. WARN    PDC                ; Turn warnings back on
  59. ENDIF    ; ??Version
  60.  
  61. ;
  62. ;    Initializer/terminator structure format.  This is used by the
  63. ;    startup code to automatically initialize run-time library packages.
  64. ;
  65. InitRec        struc
  66. ctype        db    ?        ; 0=near, 1=far, 0ffh=not used
  67. pri        db    ?        ; 0=highest, 0ffh=lowest
  68. foff        dw    ?        ; Function offset
  69. fseg        dw    ?        ; Function segment
  70. InitRec        ends
  71.  
  72.     .list
  73.