Question

2.A (25 pts) Navigating the Green Card In Figure 2.1 in our primary textbook is a...

2.A (25 pts) Navigating the Green Card In Figure 2.1 in our primary textbook is a table of MIPS instructions. It is a summary of the information found on the green card (the file mips_reference_data (Greeen Card).pdf in the General folder on the class drive). Focus your attention on the first page of that card and answer the following questions. Not all questions have answers, some are tricks.

a. (2 pts) What is the instruction format for “Or”? _____

b. (2 pts) What about “Or Immediate”? _____

c. (2 pts) It’s common sense that OR is going to logically look bitwise at inputs, not try and treat them as 2’s complement numbers to be added. But “Add Immediate” does treat the immediate value as a 2’s complement number. Look at the Operation equation for “OR Immediate”. What about that equation makes it obvious that the system is not treating it as a 2’s complement number? Compare it to the equation for “Add Immediate” if you don’t see the answer at first. ____________________________________________________________ __________________________

d. (2 pts) What is the instruction format for Jump and link? _______

e. (2 pts) What is the OPCODE for load Store conditional (in hex)? _______

f. (2 pts) What is the mnemonic for Load Byte Unsigned? ________

g. (4 pts) What mnemonic does an OPCODE of “01001” represent? __________ What instruction format would we use to interpret the rest of the bits? _____

h. (2 pts) If you find the value 2 in bits 0-5 of an instruction, what instruction would you assume is being run? ☐ Jump ☐ srl ☐ any I-type instruction ☐ can’t tell

i. (2 pts) What’s the opcode for the “nop” (also called “no op”) command? _______

j. (2 pts) Which commands may cause overflow exceptions (mnemonic, please)? _________________________

k. (3 pts) Here is an English-language description of what one of the commands does that can be found on the first page of the MIPS reference data sheet (I promise): Take the address of the instruction currently being run (where you yourself were found). Calculate the address of the instruction that is two instructions later and store it for safekeeping in the Return Address register. Now calculate the address of the instruction that is one instruction later than your own. Then take the high 4 bits of that address, concatenate it with bits 0-25 of your original 32-bit instruction, and add 2 zeros to the end to make it a new 32-bit address. Then change the contents of the program counter to that number. What is the name of this instruction (not the mnemonic)? __________________________________________

0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 10 more requests to produce the answer.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
2.A (25 pts) Navigating the Green Card In Figure 2.1 in our primary textbook is a...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
  • ADD A, #70 20 pts. write instruction (s) for 8051 microcontroller to do the following: 3, 2's com...

    ADD A, #70 20 pts. write instruction (s) for 8051 microcontroller to do the following: 3, 2's complement of a binary number, b) Clear Carry bit, c) increase the location of a 16-bit memory address, d) Jump if content of A is not zero, e) Compare and jump if content of A is less than 10. ADD A, #70 20 pts. write instruction (s) for 8051 microcontroller to do the following: 3, 2's complement of a binary number, b) Clear...

  • High-level computer languages are created to be understood by humans. As a result, the keywords and...

    High-level computer languages are created to be understood by humans. As a result, the keywords and the commands of these languages are easy to understand. Machine languages are harder to understand and operate. For this assignment, you should assume that the memory cells at addresses F0 to F9 are in the machine described in FIGURE 1, and that it contains the hexadecimal bit patterns described in the following table. Note: Each memory address contains 2 values that must be used...

  • 5 Exercises Now that everything is working you can try the following exercises. To complete them you will need to refer...

    5 Exercises Now that everything is working you can try the following exercises. To complete them you will need to refer to the documentation in Appendix A- The MiteASM Assembler and Appendix B - The MiteFPGA Processor. Write an assembly language program for an over counter for a cricket umpire. This should display a count on the 7-segment display. The count should increase by 1 when button 0 is 1. pressed. It should reset to 0 when button 1 is...

  • Question 4 2 pts Look at the following (incomplete) diagram of the Hack CPU. Look at the wire (an...

    Question 4 2 pts Look at the following (incomplete) diagram of the Hack CPU. Look at the wire (and it is a single wire) pointed to by the large red arrovw Where does the signal on this wire come from and what action does this signal trigger? ALU output decode outM instruction inM addresSM reset PC Figure 5.9 Proposed CPU implementation. The diagram shows only data and address paths, namely, wires that carry data and addresses from one place to...

  • There is an example below Now that everything is working you can try the following exercises. To complete them you wi...

    There is an example below Now that everything is working you can try the following exercises. To complete them you will need to refer to the documentation in Appendix A The MiteASM Assembler and Appendix B The MiteFPGA Processor. Write an assembly language program for an over counter for a cricket umpire. This should 1. display a count on the 7-segment display. The count should increase by 1 when button 0 is pressed. It should reset to 0 when button...

  • Group Project 1 The Micro-1 Processor Simulation <Micro-1 Computer> Here's the organization of a computer equipped...

    Group Project 1 The Micro-1 Processor Simulation <Micro-1 Computer> Here's the organization of a computer equipped with a Micro-1 processor Memory contains an array of integer cells: int cell[] = new int[CAP]; where CAP is the capacity of memory. Initially this is set to 256. Internally, the Micro-1 processor is equipped with eight 32-bit data/address registers and two 32 bit control registers: PC, the program counter, contains the address of the next instruction to execute. IR, the instruction register, contains...

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