Question: Please help I keep getting partial credit in LEGv8 question. What mistakes did I make here? Partial Question 6 2/5 pts What is the LEGv8

Please help I keep getting partial credit in LEGv8 question. What mistakes did I make here?Please help I keep getting partial credit in LEGv8 question. What mistakes

Partial Question 6 2/5 pts What is the LEGv8 assembly implementation of the following code snippet (without using the division or multiplication instructions). Assume a is stored in X9: if(a == 1024) -8a; else! a = a/4; NOTE: There should be no extraneous spaces in your answers, and all instructions and register characters should be capitalized. Commas are used appropriately to separate instruction arguments with a single space after. Label Instruction Description SUBX10,X9, #102 Subtract the constant 1024 from 'a' storing the result in X10. CBNZ X10, ELSE Conditional branch to a label called "ELSE" if the result of the previous instruction is not zero. MUL X9.#8 Cause the value of 'a' to be multiplied by 8 BEXIT Unconditionally branch to a label called "EXIT" ELSE: DIVX9,14 Cause the value of 'a' to be divided by 4 EXIT: Answer 1: SUB X10, X9, 1024 Answer 2: CBNZ X10, ELSE Answer 3: MUL X9,#8 Answer 4: B EXIT Answer 5: DIV X9,84

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!