Xor swap algorithm/Assembler Code
Appearance
The following routine swaps the value in the AX register with the value in the BX register without using a temporary buffer.
XOR AX, BX XOR BX, AX XOR AX, BX
See: Xor swap algorithm
The following routine swaps the value in the AX register with the value in the BX register without using a temporary buffer.
XOR AX, BX XOR BX, AX XOR AX, BX
See: Xor swap algorithm