EXG Instruction
Lets two data or address registers swap contents with each other. You can swap a data register with an address register.
ADDRESS METHODS: Dn, An
DATA LENGTH: Longword
FLAGS: Unaffected
SYNTAX: EXG Rx,RyEXAMPLE CODE:
EXG D0,D1
*exchanges the contents of D0 with D1