EX DE,HL

Operation

DE <-> HL

Mnemonic

EX

Operands

DE,HL

b7b6b5b4b3b2b1b0
1 1 1 0 1 0 1 1$EB

Description

The 2-byte contents of register pairs DE and HL are exchanged.

Condition Bits Affected

None

Example

If register pair DE contains $2822 and register pair HL contains $499A, then upon execution of

	EX	DE,HL

register pair DE contains $499A and register pair HL contains $2822.