Question: 6. Convert C++ code snippet to LEGv8 assembly code. The following variables x, y, and z are associated with registers X19, X20, and X21,
6. Convert C++ code snippet to LEGv8 assembly code. The following variables x, y, and z are associated with registers X19, X20, and X21, respectively, and base address of the array d is in X22. Comment the code. (30 Points) a. if (x > y) 2 = y + 4; else z = y 16; b. for (i=0; i
Step by Step Solution
3.40 Rating (163 Votes )
There are 3 Steps involved in it
assembly Comparison of x and y values CMP X19 X20 Compare x X19 and y X20 values BGT greater Branch ... View full answer
Get step-by-step solutions from verified subject matter experts
