Question: Convert the following code into LEGv8 assembly without using the MUL instruction. Assume a and b are unsigned numbers and have been placed in
Convert the following code into LEGv8 assembly without using the MUL instruction. Assume a and b are unsigned numbers and have been placed in registers X19, and X20 respectively: if (a < b) else a = a/2; a = 4*b;
Step by Step Solution
3.48 Rating (155 Votes )
There are 3 Steps involved in it
To solve the problemwe can use the following LEGv8 assembly code Code snippet CMP X19 X20 BLT AlessthanB AgreaterthanorequalB MOV X19 X20 LSL X19 2 BE... View full answer
Get step-by-step solutions from verified subject matter experts
