I (Port Input)

Syntax

I port

Parameter

port

A 16-bit port address.

Description

The Port Input (I) command reads and displays a byte from a specified hardware port. The specified port can be any 16-bit address. CodeView displays the byte read in the Command window.

This command is often used in conjunction with the Port Output (O) command. Use this command to write and debug hardware-specific programs in Assembly mode.

Note:

This command may affect the status of the hardware using the port.

Example

The following example reads the input port numbered 2F8 and displays the result, E8. You can enter the port address using any radix, but the result is always displayed in current radix.

>I 2F8 ;* hexadecimal radix assumed

E8