Sign in Join
FPDoc Onlineexperiment

WritePortB procedure

In unit x86

Write byte to PC port.

Declaration

pascal
procedure WritePortB(Port: LongInt; Value: Byte)

Description

The first form of WritePortB writes 1 byte to port Port. The second form writes Count bytes from Buf to port Port.

You need permission to write to a port. This permission can be set with root permission with the FpIOPerm call.

Errors

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

See also

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