ReadPort¶
Read data from a PC port.
Declaration¶
Source position: x86.pp line 33
procedure ReadPort(Port: LongInt; var Value: Byte);
procedure ReadPort(Port: LongInt; var Value: LongInt);
procedure ReadPort(Port: LongInt; var Value: Word);
Errors¶
In case of an error (not enough permissions read this port), runtime 216 (Access Violation) will occur.See also¶
| Name | Description |
|---|---|
| FpIOPerm | Set permission on IO ports. |
| ReadPortB | Read bytes from a PC port. |
| ReadPortW | Read Words from a PC port. |
| ReadPortL | Read longints from a PC port. |
| WritePort | Write data to PC port. |
| WritePortB | Write byte to PC port. |
| WritePortL | Write longint to PC port. |
| WritePortW | Write Word to PC port. |