Sign in Join
FPDoc Onlineexperiment

WritePortW procedure

In unit x86

Write Word to PC port.

Declaration

pascal
procedure WritePortW(Port: LongInt; Value: Word)

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.