c0.inc
上传用户:super_houu
上传日期:2008-09-21
资源大小:4099k
文件大小:2k
源码类别:

DVD

开发平台:

Others

  1. .xlist
  2. ;
  3. ; Assembly language definitions for Paradigm C++
  4. ; Copyright (C) 1996, 1997 Paradigm Systems.  All rights reserved.
  5. ;
  6. ; $Revision: 11 $
  7. ; $NoKeywords: $
  8. ;
  9. ; *********************************************************************
  10. ; Permission to modify and distribute object files based on this
  11. ; source code is granted to licensed users of Paradigm C++.
  12. ;
  13. ; Under no circumstances is this source code to be re-distributed
  14. ; without the express permission of Paradigm Systems.
  15. ; *********************************************************************
  16. ;
  17. ; This include file helps set the memory model variables and defines
  18. ; data structures used by Paradigm C++ assembly language modules.
  19. ;
  20. IFDEF ??Version ; Check for PASM
  21. NOWARN RES ; Turn off reserved words warnings
  22. NOWARN PDC ; Disable pass 1 warnings for PASM
  23. NOWARN MCP ; Disable warning for extra MASM compatibility passes
  24. ENDIF ; ??Version
  25. ;
  26. ; This macro is used to display comments during assembly
  27. ;
  28. SHOW macro msg
  29. IFDEF ??Version ; Check if PASM is doing the work
  30. ENDIF ; ??Version
  31. NOWARN PDC
  32. IF1
  33. %out msg
  34. ENDIF ; IF1
  35. IFDEF ??Version
  36. ENDIF ; ??Version
  37. endm
  38. ;
  39. ; Determine the memory module begin used and define values which can
  40. ; be tested later.  This section appears after the default segment
  41. ; declarations to avoid any problems with changing the default alignment
  42. ; characteristics.
  43. ;
  44. IFDEF __s__
  45. @CodeSize = 0
  46. @DataSize = 0
  47. pptr equ near ptr
  48. SHOW <Assembling for the small memory model>
  49. ELSEIFDEF __m__
  50. @CodeSize = 1
  51. @DataSize = 0
  52. pptr equ far ptr
  53. SHOW <Assembling for the medium memory model>
  54. ELSEIFDEF __c__
  55. @CodeSize = 0
  56. @DataSize = 1
  57. pptr equ near ptr
  58. SHOW <Assembling for the compact memory model>
  59. ELSEIFDEF __l__
  60. @CodeSize = 1
  61. @DataSize = 1
  62. pptr equ far ptr
  63. SHOW <Assembling for the large memory model>
  64. ELSEIFDEF __h__
  65. @CodeSize = 2
  66. @DataSize = 2
  67. pptr equ far ptr
  68. SHOW <Assembling for the huge memory model>
  69. ELSE
  70. @CodeSize = 0
  71. @DataSize = 0
  72. pptr equ near ptr
  73. SHOW <Assembler error: Missing memory model macro definition>
  74. .ERR
  75. ENDIF ; IFDEF
  76. ;
  77. ; Initializer/terminator structure format.  This is used by the
  78. ; startup code to automatically initialize run-time library packages.
  79. ;
  80. InitRec struc
  81. ctype db ? ; 0=near, 1=far, 0ffh=not used
  82. pri db ? ; 0=highest, 0ffh=lowest
  83. foff dw ? ; Function offset
  84. fseg dw ? ; Function segment
  85. InitRec ends
  86. .list