home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / portio.zip / portio.def < prev    next >
Text File  |  1993-05-03  |  2KB  |  39 lines

  1. ; -------------------------------------------------------------------------
  2. ; Dynamic link library providing inp, outp, inpw, outpw to CSET/2
  3. ;
  4. ; This definition module defines the exports available in the .DLL file
  5. ; to be created.  This is the "safe" way to use inp/outp since the code
  6. ; is physically separated, and only this DLL is given IOPL priveleges.
  7. ;
  8. ; To data, I have not figured out how to specify the SEGMENT of an
  9. ; assembly language program with alternate attributes through the
  10. ; .DEF module.  However, using "CODE IOPL", the IOPL priveleges can
  11. ; be granted to all segments.  If necessary, the privelege can be taken
  12. ; away from all other segments (not necessary here since portio.asm is
  13. ; the only module).
  14. ;
  15. ; Explanation of some statements
  16. ;
  17. ; LIBRARY PORTIO                  Name of DLL (MUST match real name)
  18. ; CODE PRELOAD EXECUTEONLY IOPL   Default IOPL in segments of class CODE
  19. ;                                 Might as well preload since it is so
  20. ;                                 small, but mark execute only.
  21. ; PROTMODE                        This is a protect mode program only
  22. ; EXPORTS                         List of names exported by the DLL
  23. ; @inp                            External name of a _Far16 _Fastcall inp()
  24. ; ...
  25. ;
  26. ; For some reason, the @ must be aligned in column 1 of this file.  Who
  27. ; understands all the subleties of the compiler/linkers?
  28. ; ---------------------------------------------------------------------------
  29. LIBRARY PORTIO
  30. DESCRIPTION 'Dynamically-linked Run-Time Library for Port Access'
  31. PROTMODE
  32. CODE PRELOAD EXECUTEONLY IOPL
  33.  
  34. EXPORTS
  35. @inp
  36. @outp
  37. @inpw
  38. @outpw
  39.