ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 02 Jun 2017 My Price 9.00

output of the following MIPS code

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:

Answers

(11)
Status NEW Posted 02 Jun 2017 12:06 AM My Price 9.00

-----------

Attachments

file 1496364464-Solutions file 2.docx preview (51 words )
H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly -----------onl-----------ine----------- an-----------d g-----------ive----------- yo-----------u e-----------xac-----------t f-----------ile----------- an-----------d t-----------he -----------sam-----------e f-----------ile----------- is----------- al-----------so -----------sen-----------t t-----------o y-----------our----------- em-----------ail----------- th-----------at -----------is -----------reg-----------ist-----------ere-----------d o-----------n -----------THI-----------S W-----------EBS-----------ITE-----------. ----------- Th-----------ank----------- yo-----------u -----------
Not Rated(0)