out

Operands

out (nn),r | out nn,r | out (rr),r | out (rr),0

The value of A is written to the port whose address is formed by A in the high bits and nn in the low bits.

Loading...

Variants

Every form of out the assembler accepts. The cycles column counts clock cycles, written as taken/not taken for the conditional forms.

InstructionDescriptionFlagsBytesCycles
out (nn),a

The value of A is written to the port whose address is formed by A in the high bits and nn in the low bits.

211
out (c),b

The value of B is written to the port at the 16-bit address contained in the BC register pair.

212
out (c),c

The value of C is written to the port at the 16-bit address contained in the BC register pair.

212
out (c),d

The value of D is written to the port at the 16-bit address contained in the BC register pair.

212
out (c),e

The value of E is written to the port at the 16-bit address contained in the BC register pair.

212
out (c),h

The value of H is written to the port at the 16-bit address contained in the BC register pair.

212
out (c),l

The value of L is written to the port at the 16-bit address contained in the BC register pair.

212
out (c),0 undocumented

Outputs a zero (on NMOS Z80s) or 255 (on CMOS Z80s) to the port at the 16-bit address contained in the BC register pair. Read More

212
out (c),a

The value of A is written to the port at the 16-bit address contained in the BC register pair.

212