Question: Write a sequence of EOR (exclusive-OR) LEGv8 assembly language instructions that will swap the values of registers X0 and X1. For example, if initially X0
Write a sequence of EOR (exclusive-OR) LEGv8 assembly language instructions that will swap the values of registers X0 and X1. For example, if initially X0 = 0x9 and X1 = 0xa7, then after the instructions, X0 = 0xa7 and X1 = 0x9. Your instructions should only use the registers X0 and X1. Hint: Use the fact that if a and b are bits then a = abb.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
