Search for question
Question

5. This is a classic problem of assembly language programming. Write a simple code that swaps the contents of registers RO and R1 without using any additional registers or memory storage (that is, you can't move R0 or R1 to a temporary location). You may assign any value to RO and R1. Hint: consider using the exclusive OR operation. (5 pt)

Fig: 1