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.
out
Operands
out (nn),r | out nn,r | out (rr),r | out (rr),0Variants
Every form of out the assembler accepts. The cycles column counts clock
cycles, written as taken/not taken for the conditional forms.
| Instruction | Description | Flags | Bytes | Cycles |
|---|---|---|---|---|
| out (nn),a | The value of A is written to the port whose address is formed by A in the high bits and | — | 2 | 11 |
| out (c),b | The value of B is written to the port at the 16-bit address contained in the BC register pair. | — | 2 | 12 |
| out (c),c | The value of C is written to the port at the 16-bit address contained in the BC register pair. | — | 2 | 12 |
| out (c),d | The value of D is written to the port at the 16-bit address contained in the BC register pair. | — | 2 | 12 |
| out (c),e | The value of E is written to the port at the 16-bit address contained in the BC register pair. | — | 2 | 12 |
| out (c),h | The value of H is written to the port at the 16-bit address contained in the BC register pair. | — | 2 | 12 |
| out (c),l | The value of L is written to the port at the 16-bit address contained in the BC register pair. | — | 2 | 12 |
| 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 | — | 2 | 12 |
| out (c),a | The value of A is written to the port at the 16-bit address contained in the BC register pair. | — | 2 | 12 |