The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
See attached two questions. Please give answer and explain the reasons. Thank you!
1.What would be the output of the following MIPS code?.globl mainmain:addu$s7, $0, $raadd$s3, $0, $0addi$s4, $0, 1add$s5, $0, $0la$s6, save.data.align2.globlsave# the next line creates an array of 10 words that can be referred toas “save”# the array is initialized to the 10 values after .word# so the first array entry is a 0 and the last entry is a 2save:.word0, 0, 0, 0, 0, 0, 0, 6, 3, 2.textLoop:add$t8, $s3, $s3add$t8, $t8, $t8add$t8, $t8, $s6lw$t9, 0($t8)bne$t9, $s5, Exitadd$s3, $s3, $s4jLoopExit:.data.globlmessage1message1:.asciiz "\nThe value of i is: ".textli$v0, 4la$a0, message1syscallli$v0, 1add$a0, $0, $s3syscalladdu$ra, $0, $s7jr$raadd$0, $0, $0
Attachments:
-----------