Sign in Join
FPDoc Onlineexperiment

ReadPort procedure

In unit x86

Read data from a PC port.

Declaration

pascal
procedure ReadPort(Port: LongInt; var Value: Byte)

Description

ReadPort reads one Byte, Word or Longint from port Port into Value.

Note that you need permission to read a port. This permission can be set by the root user with the FpIOPerm call.

Errors

In case of an error (not enough permissions read this port), runtime 216 ( Access Violation) will occur.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.