Out
(Engine-Level Function)
Deprecated. This function relies on the VTSIO driver, which is no longer included in new installations. Will continue to function in legacy installations but should not be used in new code.
Description: | Writes an 8 bit byte to an I/O port. |
Returns: | Nothing |
Usage: | Script or steady state. |
Function Groups: | Memory I/O |
Related to: | In | InWord | OutWord |
Format: | Out(, Value) |
Parameters: |
Port |
Required. Any numeric expression giving the I/O address of the port to write. Port must be in the range 0 to 65535. |
Value |
Required. Any numeric expression giving the byte to write. Value must be in the range 0 to 255. |
Comments: | This function requires that the VTSIO driver be installed. If Port or Value is out of range or invalid, nothing is written. If this statement appears in a state, Value is written when its value changes. If it is in a script, Value is written when the script is executed. |
Example:
Out(0x300, reg);
This writes reg to CPU output port 300 (hex).