Question: Show the machine instruction (in binary and hex) for each instruction below which is marked with a number # # # # - Program to

Show the machine instruction (in binary and hex) for each instruction below which is marked with a number # # # # - Program to calculate the value of - A*X^2+B*X+C and print the result in format "Answer = 180". X: A: B: C: .data .word 7 .word 3 .word 4 .word 5 ansl:.asciiz "Answer = endl: .asciiz " " .text #1 lw $t0, X lw $t1, A lw $t2,B lw $t3, mul $t4, $t0,$t0 mul $t4, $t4, ti mul $t5, $2,$t0 add $t4, $t4, $t5 addi $t4,$t4, $t3 #2 # # # 3 #4 #5 la $a0, ans1 li $v0,4 syscall # 6 lw xor ori $t7, 26 ($t8) #7 $t6, $t2, $t1 $t5, $t3, Oxa 4 #8 #9 # print result move $a0,$t4 li $v0,1 syscall la $a0, endi li $v0,4 syscall # syscall to print out # a new line li $v0,10 syscall # Exit # Bye
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
