SourcePoint Intel Help

Table of Contents


Display or change the contents of a 16-bit I/O port.


[result =] [[px]] wport(io-addr) [= expr]



specifies an debug variable of type ord2 to which the function return value is assigned. If result is not specified, the return value is displayed on the next line of the screen.


is the viewpoint override, including punctuation ( [ ] ), specifying that the viewpoint is temporarily set to processor x of the boundary scan chain.  The processor can be specified as px (where x is the processor ID), or an alias you have defined for a given processor ID.  ALL cannot be used as a viewpoint override.


specifies a 16-bit address in the processor I/O space. The available io-addr range is 0 to 0ffffh. The use of parentheses is optional.


specifies a 16-bit number or an expression. Using this option writes the data to the specified I/O Port.


Use the wport command to read from and write to the specified I/O port with the specified 16-bit data.

Example 1

To assign a 16-bit value to a port:

Command input:

wport 88h = 4321h

Example 2

To assign one port value to another port:

Command input:

wport 90h = wport 88

Example 3

To create a debug variable named portvar and assign a port value to it:

Command input:

define ord2 portvar
portvar = wport 90



Related Topics