OUT (n), A
\((n) \longleftarrow A\)
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.
Instruction Opcode hexSize bytesCycle count