Text: Write a MIPS program ASSEMBLY LANGUAGE that computes a power given a base number and an exponent using a loop ITERATIVELY. This means no recursion allowed. Run program example Enter a number x: 5 Enter the exponent n: 2 Power(x,n) is: 25 Here is my base program: # Pow.asm program # C++ (NON-RECURSIVE) code snippet of pow(x,n): # int x, n, pow=1; # cout << "Enter a number x: "; # cin >> x; # cout << "Enter the exponent n: "; # cin >> n; # for (int i = 1; i <= n; i++) { # pow = pow * x; # } # cout << "Power(x,n) is: " << pow << "
"; # Assembly (NON-RECURSIVE) code version of pow(x,n): # .data # TODO: Write your initializations here number: .asciiz "Enter a number x: " exponent:.asciiz "Enter the exponent n: " result:.asciiz "Power(x,n) is: " newline:.asciiz " " #Text Area (i.e. instructions) .text main: li $v0 4 la $a0 number syscall li $v0 5 syscall move $t0 $v0 li $v0 4 la $a0 exponent syscall li $v0 5 syscall move $t1 $v0 # TODO: Write your code here exit: li $v0 10 syscall # TODO: Write code to properly exit a SPIM simulation