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
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) Printout 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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
