ports unit
Access to hardware ports.
The ports unit implements the port constructs found in Turbo Pascal.
It uses classes and default array properties to do this.
The unit exists on Linux, OS/2 and Dos. It is implemented only for compatibility with Turbo Pascal. Its usage is discouraged, because using ports is not portable programming, and the operating system may not even allow it (for instance Windows).
Under Linux, your program must be run as root, or the IOPerm call
must be set in order to set appropriate permissions on the port access.
Classes and records
tport | object | Type implemented to support integer-sized port access. |
tportl | object | Type implemented to support Longint-sized port access. |
tportw | object | Type implemented to support word-sized port access. |
Variables
port | variable | Provide port access per integer. |
portb | variable | Provide port access per byte. |
portl | variable | Provide port access per longint. |
portw | variable | Provide port access per word. |
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
