home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2MISC / CSDPMI3S.ZIP / SRC / CWSDPMI / SEGDEFS.INC < prev    next >
Encoding:
Text File  |  1996-06-15  |  1.5 KB  |  67 lines

  1. ; Copyright (C) 1995,1996 CW Sandmann (sandmann@clio.rice.edu) 1206 Braelinn, Sugarland, TX 77479
  2. ; Copyright (C) 1993 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954
  3. ;
  4. ; This file is distributed under the terms listed in the document
  5. ; "copying.cws", available from CW Sandmann at the address above.
  6. ; A copy of "copying.cws" should accompany this file; if not, a copy
  7. ; should be available from where this file was obtained.  This file
  8. ; may not be distributed without a verbatim copy of "copying.cws".
  9. ;
  10. ; This file is distributed WITHOUT ANY WARRANTY; without even the implied
  11. ; warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12.  
  13. ;    .386p
  14. DGROUP    group    _DATA,_BSS
  15.  
  16. ;------------------------------------------------------------------------
  17.  
  18. start_code16    macro
  19. ;_TEXT    segment    byte public 'code' use16
  20. _TEXT    segment    dword public 'code' use16
  21.     assume    cs:_TEXT,ds:DGROUP,ss:DGROUP
  22.     endm
  23.  
  24. end_code16    macro
  25. ;    align    10h
  26. _TEXT    ends
  27.     endm
  28.  
  29. start_code16
  30. end_code16
  31.  
  32. ;------------------------------------------------------------------------
  33.  
  34. start_data16    macro
  35. _DATA    segment word public 'DATA' use16
  36.     endm
  37.  
  38. end_data16    macro
  39. ;    align    10h
  40. _DATA    ends
  41.     endm
  42.  
  43. start_data16
  44. end_data16
  45.  
  46. ;------------------------------------------------------------------------
  47.  
  48. start_bss    macro
  49. _BSS    segment    word public 'BSS'
  50.     endm
  51.  
  52. end_bss    macro
  53. ;    align    10h
  54. _BSS    ends
  55.     endm
  56.  
  57. start_bss
  58. end_bss
  59.  
  60.     .386p
  61.  
  62. jmpt    macro    sel
  63.     db    0eah
  64.     dw    0,sel
  65.     endm
  66.  
  67.