Question: Need help please. Please show all steps. Thank you in advance # main's f program starts here # program continues here text globl test: data
# main's f program starts here # program continues here text globl test: data listl: 1ist2: ist3: ist4: ist5: word word word word 3, 6, 1, 2, 7 7, 9 -3, 4, 12 7, 5, 5, -4, 6 9, 5, -3, 4 10 1, 5, 0, 3, 4 test addi sp, Ssp-4 s Sra, 0 (Ssp) jal ece369 move $a0, Svo syscall la $a0, message 1 $v0. 4 syscall la a0, newline 1 SvO, syscall w ra, 0 (Ssp) addi $sp, Ssp,4 dr Sra messag@.asciiz newline:asciiz "potatoes In" text glob1 ece369 ece369: Sto, SvO. 11$tl, awesome: lt $t5, $tl, $a globl main main: beq $t5, $zero, class add $t2, Stl, Stl add $t2, $t2, St2 add $t3, $a0, $t2 add $t7, $a2, $t2 addi $sp, $sp,-4 la $a0, list la $a2, list3 11 $a1.5 al test la $a0,11st2 la $a2, list4 1i sub $t5, $t4, $t6 rl t4, $t5, 31 Sal, 5 al test la a0, 1ist beq t5, Szero, fun addi $to0, St0, 1 addi $tl, $t1,1 add vo, St0, Szero Sal, 8 fun: al test return:1 $v0, 0 Wesome class: Sra, 0(Ssp) ra addi ap, Ssp, r Sra What will be printed on the console after executing the code given above? You need to show the exact way of prin information on the console. In one sentence explain what this function implements. Show your work to get credit. # main's f program starts here # program continues here text globl test: data listl: 1ist2: ist3: ist4: ist5: word word word word 3, 6, 1, 2, 7 7, 9 -3, 4, 12 7, 5, 5, -4, 6 9, 5, -3, 4 10 1, 5, 0, 3, 4 test addi sp, Ssp-4 s Sra, 0 (Ssp) jal ece369 move $a0, Svo syscall la $a0, message 1 $v0. 4 syscall la a0, newline 1 SvO, syscall w ra, 0 (Ssp) addi $sp, Ssp,4 dr Sra messag@.asciiz newline:asciiz "potatoes In" text glob1 ece369 ece369: Sto, SvO. 11$tl, awesome: lt $t5, $tl, $a globl main main: beq $t5, $zero, class add $t2, Stl, Stl add $t2, $t2, St2 add $t3, $a0, $t2 add $t7, $a2, $t2 addi $sp, $sp,-4 la $a0, list la $a2, list3 11 $a1.5 al test la $a0,11st2 la $a2, list4 1i sub $t5, $t4, $t6 rl t4, $t5, 31 Sal, 5 al test la a0, 1ist beq t5, Szero, fun addi $to0, St0, 1 addi $tl, $t1,1 add vo, St0, Szero Sal, 8 fun: al test return:1 $v0, 0 Wesome class: Sra, 0(Ssp) ra addi ap, Ssp, r Sra What will be printed on the console after executing the code given above? You need to show the exact way of prin information on the console. In one sentence explain what this function implements. Show your work to get credit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
