Question: PROBLEM 7 A Convert this C code to LEGv8 Assembly Language instructions. Assume that the base address of array is 0x10007000 and i is in

PROBLEM 7

A Convert this C code to LEGv8 Assembly Language instructions. Assume that the base address of array is 0x10007000 and i is in register X0. Each element of array is eight bytes long. You can use registers X9,..., and X19,...,X27. Use only native instructions (avoid pseudo-instructions). Use minimum number of instructions.

array[8]=array[i+1]*5;

B) In the code provided below. Assuming the func is equal to 0x400040 and the COND_BR_address is 0x123 What is the value of else in hex?

func: CBNZ X0, else

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!