home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MISC / NETWORK / TEL23SRC.ZIP / NET / ENET / PACKET2.ASM < prev    next >
Encoding:
Assembly Source File  |  1991-05-15  |  2.1 KB  |  117 lines

  1. ;/* cu-notic.txt         NCSA Telnet version 2.2C     2/3/89
  2. ;   Notice:
  3. ;        Portions of this file have been modified by
  4. ;        The Educational Resources Center of Clarkson University.
  5. ;
  6. ;        All modifications made by Clarkson University are hereby placed
  7. ;        in the public domain, provided the following statement remain in
  8. ;        all source files.
  9. ;
  10. ;        "Portions Developed by the Educational Resources Center, 
  11. ;                Clarkson University"
  12. ;
  13. ;        Bugs and comments to bkc@omnigate.clarkson.edu
  14. ;                                bkc@clgw.bitnet
  15. ;
  16. ;        Brad Clements
  17. ;        Educational Resources Center
  18. ;        Clarkson University
  19. ;*/
  20.  
  21.  
  22. ;Microsoft EQU 1
  23. ;Lattice EQU 1
  24. ifndef Microsoft
  25.     ifndef Lattice
  26.         if2
  27.             %out
  28.             %out ERROR: You have to specify "/DMicrosoft" OR "/DLattice" on the
  29.             %out        MASM command line to determine the type of assembly.
  30.             %out
  31.         endif
  32.         end
  33.     endif
  34. endif
  35.  
  36.     NAME    NET
  37. ifdef Microsoft
  38. X    EQU    6
  39.     DOSSEG
  40.     .MODEL    LARGE
  41. else
  42.     INCLUDE    DOS.MAC
  43.     SETX
  44. endif
  45. ; Low-level interface for receiver function
  46. ; why we can't do this more gracefully in turbo is beyond me.
  47. ; turbo is irratating at times..
  48.  
  49. ifdef Microsoft
  50.     .code
  51. ifdef Watcom
  52.     EXTRN   PKT_RECEIVER2_:FAR
  53. else
  54.     EXTRN    _PKT_RECEIVER2:FAR
  55. endif
  56.     PUBLIC    _pkt_receiver,_clear_int,_set_int
  57. else
  58.     PSEG
  59.     EXTRN    PKT_RECEIVER2:FAR
  60.     PUBLIC    pkt_receiver,clear_int,set_int
  61. endif
  62.  
  63. ifdef Microsoft
  64. _PKT_RECEIVER    PROC    FAR
  65. else
  66. PKT_DRIVER    PROC    FAR
  67. endif
  68.     PUSHF
  69. ifdef Microsoft
  70. ifdef Watcom
  71.     CALL    PKT_RECEIVER2_
  72. else
  73.     CALL    _PKT_RECEIVER2
  74. endif
  75. else
  76.     CALL    PKT_RECEIVER2
  77. endif
  78.     RET
  79. ifdef Microsoft
  80. _PKT_RECEIVER    ENDP
  81. else
  82. PKT_RECEIVER    ENDP
  83. endif
  84.  
  85. ifdef Microsoft
  86. _CLEAR_INT    PROC    FAR
  87. else
  88. CLEAR_INT    PROC    FAR
  89. endif
  90.     CLI
  91.     RET
  92. ifdef Microsoft
  93. _CLEAR_INT    ENDP
  94. else
  95. CLEAR_INT    ENDP
  96. endif
  97.  
  98. ifdef Microsoft
  99. _SET_INT    PROC    FAR
  100. else
  101. SET_INT    PROC    FAR
  102. endif
  103.     STI
  104.     RET
  105. ifdef Microsoft
  106. _SET_INT    ENDP
  107. else
  108. SET_INT    ENDP
  109. endif
  110. ifdef Microsoft
  111. ;_TEXT    ends
  112. else
  113.     ENDPS
  114. endif
  115.     END
  116.  
  117.