Swap two registers using only AND, OR, NOT, XOR? : <p>Consider you have a processor with AND, OR, XOR, NOT and 2 registers X &amp; Y.
What is the smartest way to swap the values of the 2 registers?</p>
