Answered step by step
Verified Expert Solution
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started