Arithmetic Operations 1) Read and Output in the command line MARS window. (a) Re
ID: 3812349 • Letter: A
Question
Arithmetic Operations
1) Read and Output in the command line MARS window.
(a) Read three integers from the command line window
(b) Add the three integers
(c) Print the result in the command line window
2) Print–out the result of the following expression, in the command line (window):
($s0 - $s1 - $s2) + $s3
where,
• $s0 = 8
• $s1 = 3
• $s2 = 1
• $s3 = 2
3) Place the result of the following equation, into register $t0: $t0 = $s0/8 2 $s1 + $s2
where,
• $s0 = 2400 • $s1=50
• $s2 = 600
or
800 = (2400/8) (2 50) + 600
4) Using MIPS assembly evaluate the polynomial:
... for x = 2.
($s0$s1$s2)+$s3
3x^2 +2x+1
Explanation / Answer
1)
b)
2)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.