Consider the following program:

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section: Chapter Questions
Problem 8PP: (Statistical) In many statistical analysis programs, data values considerably outside the range of...
icon
Related questions
Question
100%

10.

Consider the following program:

main:

            li $s0, -21

            li $s1, 6

            li $s2, 0

            li $s3, 14

            beqz $s2, skip

            div $s0, $s1

            mfhi $t0

skip:

            and $s5, $s1, $s3

            or $s6, $s1, $s2

            neg $s7, $s0

            li $v0, 10

            syscall

 

What are the values in the following registers after the program finishes execution? Mention the values in decimal.

 

$s0 =

$s1 =

$s2 =

$s3 =

$s5 =

$s6 =

$s7 =

Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Print statement
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning