O (Port Output)

Syntax

O port byte

Parameters

port

A 16-bit port address.

byte

Byte to send to port.

Description

The Port Output (O) command sends a byte value to a hardware port. You use this command to debug a program that interacts directly with hardware.

The Port Output command is often used with the Port Input (I) command.

Example

In the following example, the byte value 4F hexadecimal is sent to output port 2F8.

>O 2F8 4F ;* hexadecimal radix assumed

>