Read Words from a PC port.
Source position: x86.pp line 31
function ReadPortW( |
Port: LongInt |
):Word; |
Port: LongInt; |
var Buf; |
Count: LongInt |
); |
The procedural form of ReadPortW reads Count words from port Port and stores them in Buf. There must be enough memory allocated at Buf to store Count words.
The functional form of ReadPortW reads 1 word from port B and returns the word that was read.
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 data from a PC port. |
|
|
Read bytes 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. |