| [Overview][Procedures and functions][Index] | 
Read data from a PC port
Source position: x86.pp line 25
| procedure ReadPort( | 
| Port: LongInt; | 
| var Value: Byte | 
| ); | 
| Port: LongInt; | 
| var Value: LongInt | 
| ); | 
| Port: LongInt; | 
| var Value: Word | 
| ); | 
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.
| 
 | Set permission on IO ports | |
| 
 | Read bytes from a PC port | |
| 
 | Read Words from a PC port | |
| 
 | Read longints from a PC port | |
| 
 | Write data to PC port | |
| 
 | Write byte to PC port | |
| 
 | Write longint to PC port. | |
| 
 | Write Word to PC port |