Question: Please explain steps thoroughly. 1. Please complete the assembly language program to evaluate the expression: 17xy - 12x - 6y 12 Assume that the values

Please explain steps thoroughly.
1. Please complete the assembly language program to evaluate the expression: 17xy - 12x - 6y 12 Assume that the values are small enough so that all results fit into 32 bits. (12 points) ## Program to calculate 17xy-12x-6y+12 .text globl nain ain: lui $8, $9 $10, # $8 saves base address # put x into $9 # put y into $10 # put 17 into $11 # compute 17x # save 17x into $11 # compute 17xy # save 17xy into $11 # put 12 into $12 # compute 12x # save 12x into $12 # conpute 17xy-12x and put it into $11 # put 6 into $12 # compute 6y # put 6y into $12 # compute 17xy-12x-6y and put it into $11 # compute 17xy-12x+-6y+12 and save it into $11 17 $11 $11 12 $12 $12 -, -, : # save the final answer back to main memory with symbolic address 'answer' X: y: answer: .word e "data # The data section states at address 0x1000000 NDrd 8 # The base register points here .word 9
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
