Question: 2. Translate the following LEGV8 assembly code to C. Assume that the variables f, g, h, i, and jare assigned to registers X19, 20, 21,
2. Translate the following LEGV8 assembly code to C. Assume that the variables f, g, h, i, and jare assigned to registers X19, 20, 21, 22, and X23, respectively. Assume that the base address of the arrays A and B are in registers X24 and X25, respectively. a. ADDI X19, X20, #0 b. LSL X9, X22, #3 ADD X9, X24, X9 LDUR X9, [X9, #0] LSL X10, X23, #3 ADD X10, X24, X10 LDUR X10, [X10, 0] SUB X9,X9, X10 STUR X9, [X25, #96]
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
