Unit 'x86' Package
[Overview][Procedures and functions][Index] [#rtl]

WritePort

Write data to PC port.

Declaration

Source position: x86.pp line 39

procedure WritePort(

  Port: LongInt;

  Value: Byte

);

procedure WritePort(

  Port: LongInt;

  Value: LongInt

);

procedure WritePort(

  Port: LongInt;

  Value: Word

);

Description

WritePort writes Value -- 1 byte, Word or longint -- to port Port.

Remark: 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

FpIOPerm

  

Set permission on IO ports.

WritePortB

  

Write byte to PC port.

WritePortL

  

Write longint to PC port.

WritePortW

  

Write Word to PC port.

ReadPortB

  

Read bytes from a PC port.

ReadPortL

  

Read longints from a PC port.

ReadPortW

  

Read Words from a PC port.


Documentation generated on: Oct 27 2024