/opcodes/ex

Register and Data manipulation // EX (EXchange)

Description

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

Example

If register pair DE contains 2822h and register pair HL contains 499Ah, then upon the execution of an EX DE, HL instruction, register pair DE contains 499Ah and register pair HL contains 2822h.

Opcodes