100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
ECE445 Certification Review Exam Questions And Answers With Multiple Choices And Verified Answers. $17.99   Add to cart

Exam (elaborations)

ECE445 Certification Review Exam Questions And Answers With Multiple Choices And Verified Answers.

 6 views  0 purchase
  • Course
  • MIPS
  • Institution
  • MIPS

Lecture 3 1) Write the MIPS assembly language instruction to implement the C instruction given below. f = a - b; Assume the following a is in $s1 b is in $s2 c is in $s3 d is in $s4 f is in $s0 - correct answer sub $s0, $s1, $s2 Lecture...

[Show more]

Preview 4 out of 55  pages

  • August 22, 2024
  • 55
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • MIPS
  • MIPS
avatar-seller
RealGrades
ECE445

Lecture 3

1) Write the MIPS assembly language instruction to implement the C instruction given below.

f = a - b;



Assume the following

a is in $s1

b is in $s2

c is in $s3

d is in $s4

f is in $s0 - correct answer sub $s0, $s1, $s2



Lecture 3

2) Write the MIPS assembly language instruction(s) to implement the C instruction given below.

f = d + c - 3;



Assume the following

a is in $s1

b is in $s2

c is in $s3

d is in $s4

f is in $s0 - correct answer add $s0, $s3, $s4

addi $s0, $s0, - 3



Lecture 3

3) Write the MIPS assembly language instruction(s) to implement the C instruction given below.

,f = a && 0xF8F8;



Assume the following

a is in $s1

b is in $s2

c is in $s3

d is in $s4

f is in $s0 - correct answer andi $s0, $s1, 0xF8F8



Lecture 3

4) Write the MIPS assembly language instruction(s) to implement the C instruction given below.

f = b || c || d;



Assume the following

a is in $s1

b is in $s2

c is in $s3

d is in $s4

f is in $s0 - correct answer or $s0, $s3, $s4; or $s0, $s0, $s2



Lecture 3

5) Write the MIPS assembly language instruction(s) to implement the C instruction given below.

f = c * 8;



Assume the following

a is in $s1

b is in $s2

c is in $s3

d is in $s4

,f is in $s0 - correct answer sll $s0, $s3, 3



Lecture 3

6) Write the MIPS assembly language instruction to read data from the given memory location into
variable f.

f = MEM[0x1000001C];



Assume the following

f is in $s0

Memory address 0x10000000 is in $t0 - correct answer lw $s0, 28($t0)



Lecture 3

7) Write the MIPS assembly language instruction to write data from variable f to the given memory
location.

MEM[0x10000024] = f;



Assume the following

f is in $s0

Memory address 0x10000000 is in $t0 - correct answer sw $s0, 36($t0)



Lecture 3

8) Which of the following MIPS assembly language instructions is not an R-type instruction?



sub $s0, $t1, $t3

and $t0, $t2, $t4

sll $s1, $s2, 5

beq $s4, $t5, next

slt $t7, $s6, $s7 - correct answer beq

, Lecture 3

9) Which of the following MIPS assembly language instructions is not an I-type instruction?



lw $s0, 8($t0)

addu $s2, $s4, $s6

addi $t1, $t2, 17

bne $s3, $t3, end

sw $s5, 20($t4) - correct answer addu



Lecture 3

10) Convert the MIPS assembly language instruction given below to MIPS machine language.



sub $t0, $s1, $s5 - correct answer 0x02354022



Lecture 3

11) Convert the MIPS assembly language instruction given below to MIPS machine language.



lw $s0, 20($t1) - correct answer 0x8d300014



Lecture 3

12) Convert the MIPS assembly language instruction given below to MIPS machine language.



srl $s1, $t0, 2 - correct answer A?



Lecture 3

13) Which of the following MIPS machine language instructions is not an R-type instruction?



0xAE2B0034

ML instruction

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller RealGrades. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $17.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

80461 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$17.99
  • (0)
  Add to cart