Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

how would this be calculated in mips? calculate ans1 = 2a - b + 9 (use a+a for 2a) and store the result calculate ans2

how would this be calculated in mips?

  • calculate ans1 = 2a - b + 9 (use a+a for 2a) and store the result
  • calculate ans2 = c - b + (a - 5) and store the result
  • calculate ans3 = (a - 3) + (b + 4) - (c + 7) and store the resul

currently have

#calculate ans1

add $s0, $t0, $t1 add $s0, $s0, $t2 sw $s0, ans1

#calculate ans2

add $s0, $t1, $t2 sub $s0, $s0, $t0 sw $s0, ans2

#calculate ans3

add $t0, $t0, 2 sub $t1, $t1, 5 sub $t2, $t2, 1 add $s0, $t0, $t1 sub $s0, $s0, $t2 sw $s0, ans3

which is very wrong

help appreciated ty

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Probabilistic Databases

Authors: Dan Suciu, Dan Olteanu, Christopher Re, Christoph Koch

1st Edition

3031007514, 978-3031007514

More Books

Students also viewed these Databases questions

Question

mple 10. Determine d dx S 0 t dt.

Answered: 1 week ago