Consider the following C codes: if (53-54) s0 - 51+52; else Below are two MIPS translations. Fill in the blanks. Translation 1: se-s1-52; IF: FALSE: TRUE: EXIT: A B Translation 2: IF: TRUE: FALSE: EXIT: sub 5 add $53, $54, TRUE #branch to TRUE when 53-54 $50, $51, S32 50 s1 - 52 Exit skip the TRUE 550, Ss1, 552 = 50 s1 s2 B Ss3, $54, FALSE #branch to FALSE when s3=s4 $50, Ss1, 5s2 add # 50 = s1 s2 j Exit #skip the FALSE # 50 sub $50, s1 s2 $51, $s2 [Choose ] [Choose] bne beq M >

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter2: Problem Solving Using C++using
Section2.2: Programming Style
Problem 4E: (For thought) a. A token of a computer language is any sequence of characters, with no intervening...
icon
Related questions
Question

Question 9 na
.
Full explain this question and text typing work only     
We should answer our question within 2 hours takes more time then we will reduce Rating Dont ignore this line

Consider the following C codes:
if ($3--54)
s0 - 51-52;
else
Below are two MIPS translations. Fill in the blanks.
Translation 1:
se = 51-52;
IF:
FALSE:
TRUE:
EXIT:
A
B
Translation 2:
IF:
TRUE:
FALSE:
EXIT:
sub
1
add
B
$$3 $54, TRUE
$50, $51, $s2
Exit
550, Ss1, $32
add
Ss3, $54, FALSE #branch to FALSE when $3+s4
$50, Ss1, 552
51 +52
# 50
Exit
sub $50, $$1,
$s2
[Choose ]
[Choose]
branch to TRUE when s3=54
50 51 52
#skip the TRUE
#s8 s1 + $2
bne
beq
# skip the FALSE
# 50 = s1 - $2
Transcribed Image Text:Consider the following C codes: if ($3--54) s0 - 51-52; else Below are two MIPS translations. Fill in the blanks. Translation 1: se = 51-52; IF: FALSE: TRUE: EXIT: A B Translation 2: IF: TRUE: FALSE: EXIT: sub 1 add B $$3 $54, TRUE $50, $51, $s2 Exit 550, Ss1, $32 add Ss3, $54, FALSE #branch to FALSE when $3+s4 $50, Ss1, 552 51 +52 # 50 Exit sub $50, $$1, $s2 [Choose ] [Choose] branch to TRUE when s3=54 50 51 52 #skip the TRUE #s8 s1 + $2 bne beq # skip the FALSE # 50 = s1 - $2
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Binary numbers
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