ex

Operands

ex rr,rr' | ex (rr),rr | ex rr,(rr)

Exchanges the 16-bit contents of AF and AF'.

Loading...

Variants

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

InstructionDescriptionFlagsBytesCycles
ex af,af'

Exchanges the 16-bit contents of AF and AF'.

14
ex (sp),ix

Exchanges (SP) with IXL, and (SP+1) with IXH.

223
ex (sp),hl

Exchanges (SP) with L, and (SP+1) with H.

119
ex de,hl

Exchanges the 16-bit contents of DE and HL.

14
ex (sp),iy

Exchanges (SP) with IYL, and (SP+1) with IYH.

223