A byte from the port whose address is formed by A in the high bits and nn in the low bits is written to A.
in
Operands
in r,(nn) | in r,nn | in r,(rr) | in (rr)Loading...
Variants
Every form of in the assembler accepts. The cycles column counts clock
cycles, written as taken/not taken for the conditional forms.
| Instruction | Description | Flags | Bytes | Cycles |
|---|---|---|---|---|
| in a,(nn) | — | 2 | 11 | |
| in b,(c) | N=0P/V=PH=0ZS | 2 | 12 | |
| in c,(c) | N=0P/V=PH=0ZS | 2 | 12 | |
| in d,(c) | N=0P/V=PH=0ZS | 2 | 12 | |
| in e,(c) | N=0P/V=PH=0ZS | 2 | 12 | |
| in h,(c) | N=0P/V=PH=0ZS | 2 | 12 | |
| in l,(c) | N=0P/V=PH=0ZS | 2 | 12 | |
| in (c) undocumented | N=0P/V=PH=0ZS | 2 | 12 | |
| in a,(c) | N=0P/V=PH=0ZS | 2 | 12 |