home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / CLIPPER / MISC / MSMOUSE2.ZIP / UTILS.ZIP / ASM.INC next >
Encoding:
Text File  |  1989-02-10  |  1.2 KB  |  89 lines

  1.  
  2. ;
  3. ; asm.inc
  4. ;
  5. ; Module for mouse test utility
  6. ;
  7. ; Copyright (c) 1988-1989, Microsoft Corporation.  All rights reserved.
  8. ;
  9.  
  10. ;
  11. ; E Q U A T E S
  12. ;
  13.  
  14. FALSE        EQU    0        ; Define booleans
  15. TRUE        EQU    (NOT FALSE)    ; Define booleans
  16.  
  17. ;
  18. ; Setup memory model
  19. ;
  20.  
  21. _SmallC        =    FALSE        ; Assume not small C model
  22. _MediumC    =    FALSE        ; Assume not medium C model
  23. _CompactC    =    FALSE        ; Assume not compact C model
  24. _LargeC        =    FALSE        ; Assume not large C model
  25.  
  26. ifdef    MediumC
  27. _MediumC    =    TRUE        ; We have medium C model
  28. else    ; NOT MediumC
  29.  
  30. ifdef    CompactC
  31. _CompactC    =    TRUE        ; We have compact C model
  32. else    ; NOT CompactC
  33.  
  34. ifdef    LargeC
  35. _LargeC        =    TRUE        ; We have large C model
  36. else    ; NOT LargeC
  37. _SmallC        =    TRUE        ; We have small C model
  38. endif    ; NOT LargeC
  39.  
  40. endif    ; NOT CompactC
  41.  
  42. endif    ; NOT MediumC
  43.  
  44. ;
  45. ; M A C R O S
  46. ;
  47.  
  48. C_ENTRY MACRO
  49.  
  50.     PUSH    BP
  51.     MOV    BP,SP
  52.  
  53.     ENDM
  54.  
  55. C_EXIT    MACRO
  56.  
  57.     POP    BP
  58.     RET
  59.  
  60.     ENDM
  61.  
  62. ;
  63. ; S E G M E N T S
  64. ;
  65.  
  66. if    _SmallC
  67.     .MODEL    SMALL
  68. endif    ; _SmallC
  69.  
  70. if    _MediumC
  71.     .MODEL    MEDIUM
  72. endif    ; _MediumC
  73.  
  74. if    _CompactC
  75.     .MODEL    COMPACT
  76. endif    ; _CompactC
  77.  
  78. if    _LargeC
  79.     .MODEL    LARGE
  80. endif    ; _LargeC
  81.  
  82. if    NOT @datasize
  83.  
  84. dgroup    group    _data            ; Because of assembler bug
  85.  
  86. endif    ; NOT @datasize
  87.  
  88.     .CODE
  89.