OutWord

(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 a 16 bit word to an I/O port.
Returns: Nothing
Usage: Script or steady state.
Function Groups: Memory I/O
Related to: In | InWord | Out
Format: OutWord(Port, 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 word to write. Value must be in the range 0 to 65535.
Comments: This function requires that the VTSIO driver be installed.
This function writes a 16 bit unsigned value to a CPU I/O port. 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:

OutWord(0x300, reg);

This writes reg to I/O port 300 (hex).