Description: This function writes a 16 bit word to an I/O port.
Returns: Nothing
Usage: Script or Steady State
Format: OutWord(Port, Value)
Parameters: Port { numeric } { required } { no default }
Any numeric expression giving the I/O address of the port to write. Port must be in the range 0 to 65535.
Value { numeric } { required } { no default }
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. Please refer to the topic, Communicating Directly With Hardware for more details.
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).
See Also: