EX AF,AF'

Operation

AF <-> AF'

Mnemonic

EX

Operands

AF,AF'

b7b6b5b4b3b2b1b0
0 0 0 0 1 0 0 0$08

Description

The 2-byte contents of the register pairs AF and AF' are exchanged. Register pair AF' consists of registers A' and F'.

Condition Bits Affected

None

Example

If register pair AF contains $9900 and register pair AF' contains $5944, then upon execution of

	EX	AF,AF'

register pair AF contains $5944 and register pair AF' contains $9900.