in

Operands

in r,(nn) | in r,nn | in r,(rr) | in (rr)

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.

Loading...

Variants

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

InstructionDescriptionFlagsBytesCycles
in a,(nn)

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.

211
in b,(c)

A byte from the port at the 16-bit address contained in the BC register pair is written to B.

N=0P/V=PH=0ZS212
in c,(c)

A byte from the port at the 16-bit address contained in the BC register pair is written to C.

N=0P/V=PH=0ZS212
in d,(c)

A byte from the port at the 16-bit address contained in the BC register pair is written to D.

N=0P/V=PH=0ZS212
in e,(c)

A byte from the port at the 16-bit address contained in the BC register pair is written to E.

N=0P/V=PH=0ZS212
in h,(c)

A byte from the port at the 16-bit address contained in the BC register pair is written to H.

N=0P/V=PH=0ZS212
in l,(c)

A byte from the port at the 16-bit address contained in the BC register pair is written to L.

N=0P/V=PH=0ZS212
in (c) undocumented

Inputs a byte from the port at the 16-bit address contained in the BC register pair and affects flags only.

N=0P/V=PH=0ZS212
in a,(c)

A byte from the port at the 16-bit address contained in the BC register pair is written to A.

N=0P/V=PH=0ZS212