SourcePoint Intel Help

Table of Contents

dport

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

Syntax

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

Where:

result

specifies an debug variable of type ord4 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.

[px]

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.

io-addr

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

expr

specifies a 32-bit number or expression. Using this option writes the data to the specified I/O port.

Discussion:

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

Example 1

To assign a 32-bit value to a port and assign one port value to another:

Command input:

dport 88h = 87654321h
dport 90h = dport 88h

Example 2

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

Command input:

define ord4 portvar
portvar = dport 90 ; portvar

Result:

FFFFFFFFH

ย