Question

What is Big-endian order of 78563412h? (first column represents the address) b) 0003 56 a) 0003 78 0002 56 0002 78 0001 34 00

Match the following: 1) SWAP CONTENT OF REGISTERS 2) DIVIDE by 2 3) PARITY CHECK A)NOT B) XOR C) NEG D) SHR E) XCHG 4) TWOs

Consider the following arithmetic operations int A-5; int B 6; int C-A+B Which of following codes is the correct and equivale

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1. Option C is correct because in Big endian representation, most significant hexadecimal digit pair is at lower address and least significant digit pair is at higher address. Hence in address 78563412h , the first digit pair 78h will be at lowest starting address and then next address will contain 56h and then 34h and finally 12h. So option C is correct.

2.  

Here XCHG instruction swap the content of 2 registers. Hence 1) matches with E).

SHR instruction shift the content of register to right by specified amount and hence to divide by 2, we have to shift the content to right by 1 unit. Hence 2) matches with D).

Here 3) matches with B) because XOR will output 1 for odd number of 1s and output 0 for even number of 1s.

Here 4) matches with C) because NEG convent the number to negative by converting the number to its 2's complement.

Here 5) matched with A) because NOT instruction flips the bit value from 0 to 1 and vice-versa and hence convert the number to 1's complement.

Hence option A is correct.

3. Here option a) and b) are not correct because mov or move are not MIPS instruction and option C is correct but not option D because we need to load the word from address of A and B and finally store the addition in address of C.

PLease comment for any clarification.

Add a comment
Know the answer?
Add Answer to:
What is Big-endian order of 78563412h? (first column represents the address) b) 0003 56 a) 0003...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • What is Big-endian order of 78563412h? (first column represents the address) a) 0003 78 0002 56...

    What is Big-endian order of 78563412h? (first column represents the address) a) 0003 78 0002 56 b) 0003 56 0002 78 0001 34 0000 | 12 0001 12 0000 | 34 c) 0003 12 d) 0003 34 0002 12 0001 | 78 0002 34 0001 56 0000 78 0000 56

  • 4. Translate 10*2to exactly 8-digit hexadecimal number. Answers: If the cost for all RAM chips to...

    4. Translate 10*2to exactly 8-digit hexadecimal number. Answers: If the cost for all RAM chips to utilize the maximum memory space of the MIPS architecture is SI dolloars, how much will it cost, approximately, to implement the maximum memory space of the a 64-bit computer architecture Answer: Approximately 6 billions Filli an integer. No fraction.) 6. Fill in the missing pieces of the MIPS assembly codes that translate the following C codes int A[1001. BI 1001; B12] = h +...

  • Java Programming The program template represents a complete working Java program with one or more key...

    Java Programming The program template represents a complete working Java program with one or more key lines of code replaced with comments. Read the problem description and examine the output, then study the template code. Using the problem-solving tips as a guide, replace the /* */ comments with Java code. Compile and execute the program. Compare your output with the sample output provided. Modify class Time2 to include a tick method that increments the time stored in a Time2 object...

  • Q1: You can find a file that defines the CircularlyLinked List class similar to what we...

    Q1: You can find a file that defines the CircularlyLinked List class similar to what we discussed in the class. Download the file and work on it. Your task is to: 1. Complete the missing methods in the file as discussed in the class. Search for the comment/" MISSING / in the file to see the methods that need to be completed. 2. Add the following methods to the class a. public Node getMin 1. Task: find the node with...

  • 2) Predict the order of reactivity (1=least, 4=most) of primary, secondary, tertiary, and aryl halides toward...

    2) Predict the order of reactivity (1=least, 4=most) of primary, secondary, tertiary, and aryl halides toward nucleophilic displacement by an SN1 reaction mechanism. Explain 3) Give a detailed summary of the chemistry in both reactions SN2 and SN1 in details please for both reactions. include any general statements about the experiments. LAB)o Organic Chemistry I Lab CHEM 3512 Nueleophilic Substitution Reactions: Sl vs S2 To review Sul, S2, El and E2 reactions and mechanisms and compare and contrast the effect...

  • please help answer the last two (A&B) using the first two pics information provided. A C...

    please help answer the last two (A&B) using the first two pics information provided. A C D E 1 ACC 213 Accounting Lab #5 for Chapter 6 3 Complete the Bank Reconciliation (Part A) and the Journal Entries (Part B) from the information provided. 4 Part A: 6 Information from the Bank: 7 8 Bank Statement АВС Вank 9 10 XYZ Company Acct# 40-1004 Date: 3/31/2019 11 12 Beginning Balance at 3/1/2019 13 Total Deposits and other credits 14 Total...

  • What amount goes on line 20 and 21a from 2019 1040 tax return? What line should...

    What amount goes on line 20 and 21a from 2019 1040 tax return? What line should I put the $35? What amount goes on line 12a? I got some answers wrong but I am not sure which ones John and Martha Holloway are married filing jointly. They are 35 and 31 years old, respectively. Their address is 10010 Dove Street Atlanta, GA 30294. Additional information about Mr. and Mrs. Holloway is as folows: Social security numbers John 412-34-5670 Date of...

  • Please help we are suppose to explain what the C code does. This is the electronics database (6 pts) This problem is...

    Please help we are suppose to explain what the C code does. This is the electronics database (6 pts) This problem is based on Electronics database. Add some annotations to the following table to explain what the C program is doing in detail. Note that "void" is how C declares a function that does not return anything. You are expected to generalize or research svntaxes not mentioned in the lecture C Program Annotation void newPCproduct EXEC SQL BEGIN DECLARE SECTION;...

  • I NEED UML FOR THIS QUESTION ONLY! This question 9 requires you to (i) draw a...

    I NEED UML FOR THIS QUESTION ONLY! This question 9 requires you to (i) draw a UML diagram and (ii) address 9(a) to 9(e) questions. • Draw a UML diagram (in the style covered in week 7) to represent the data entities model of all custom data types in the given program. You are required to paste your UML diagram to On Track 9.2P resource document for 9.2P submission. Your assessor will evaluate your work. • Analyse the information of...

  • okay so here is my c++ code and the errors im really stuck on fixing what...

    okay so here is my c++ code and the errors im really stuck on fixing what i did wrong it seems to be the same repeated error our job is to write a menu driven program that can convert to display Morse Code ere is the menu the program should display Menu Alphabet Initials N-Numbers - Punctuations S = User Sentence Q- Quit Enter command the user chooses A your program should use a loop and your morse code printing...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT