Exchanges the 16-bit contents of AF and AF'.
ex
Operands
ex rr,rr' | ex (rr),rr | ex rr,(rr)Loading...
Variants
Every form of ex the assembler accepts. The cycles column counts clock
cycles, written as taken/not taken for the conditional forms.
| Instruction | Description | Flags | Bytes | Cycles |
|---|---|---|---|---|
| ex af,af' | — | 1 | 4 | |
| ex (sp),ix | — | 2 | 23 | |
| ex (sp),hl | — | 1 | 19 | |
| ex de,hl | — | 1 | 4 | |
| ex (sp),iy | — | 2 | 23 |