OUT (n), A

Write A to a port

\((n) \longleftarrow A\)

76543210
11010011D3
n

This instruction places n onto the bottom half (A0…A7) of the address bus to select the I/O device at one of 256 possible ports.

The contents of the Accumulator also appear on the top half (A8…A15) of the address bus at this time.

Then the byte contained in the Accumulator is placed on the data bus and written to the selected peripheral device.

Flags Affected
None.
Opcode Matrix
A
OUT (n)
OUT (n),A
D3nn211
Opcode Matrix Legend
Instruction Opcode hexSize bytesCycle count
 Special

Last modified November 16, 2021: Optimise I/O pages (a987132)