2
0

ports.pp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {
  2. This file is part of the Free Pascal run time library.
  3. and implements some stuff for protected mode programming
  4. Copyright (c) 1999-2000 by the Free Pascal development team.
  5. These files adds support for TP styled port accesses
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. {$IFNDEF FPC_DOTTEDUNITS}
  13. unit ports;
  14. {$ENDIF FPC_DOTTEDUNITS}
  15. interface
  16. { Since this platform has port access built into the System unit, this unit just
  17. creates aliases, for compatibility for programs, that already use the ports
  18. unit. }
  19. type
  20. tport = System.tport;
  21. tportw = System.tportw;
  22. tportl = System.tportl;
  23. var
  24. port : tport absolute System.port;
  25. portb : tport absolute System.portb;
  26. portw : tportw absolute System.portw;
  27. portl : tportl absolute System.portl;
  28. implementation
  29. end.