Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please show work in MIPS In the Simulator menu, Settings option of OtSpim, set Bare Machine OFF, Accept Pseudo Instructions OFF. Enable Delayed Branches OFF,

image text in transcribed

Please show work in MIPS

In the Simulator menu, Settings option of OtSpim, set Bare Machine OFF, Accept Pseudo Instructions OFF. Enable Delayed Branches OFF, Enable Delayed Loads OFF. Enable Mapped IO OFF. Load Exception Handler OFF. Email me the source file(s) attached to an email with "CS21 your name Assign 1" in the subject line. For these programs, you may use ONLY these instructions: and nor or ori sll srl xor Run the programs by verifying the value of the PC is 0x00400000 (if needed, right-click the field and use Change Register Contents to set it) and then single stepping (pushing FIO) and observing the results in the Q1Spim register display window. Exercise 1: Start with the instruction that puts a single one-bit into the low order bit of register eight (SEO): Sto, Szero, Ox01 Now, by using only shift logical instructions and register to register logic instructions (use NO more immediate instructions). put the pattern 0x55555555 into register 31. You may not use another andi, ori or xori instruction to set another bit from scratch, you must work from the single bit you set in the first instruction or created directly from that bit. You will need to use more registers than just Stl. See how few instructions and registers you need to do this. Doing this in approximately twelve instructions is reasonable. It can be done in fewer. Again, you MAY NOT create any other data bits from scratch for this, only the single bit you started with In the Simulator menu, Settings option of OtSpim, set Bare Machine OFF, Accept Pseudo Instructions OFF. Enable Delayed Branches OFF, Enable Delayed Loads OFF. Enable Mapped IO OFF. Load Exception Handler OFF. Email me the source file(s) attached to an email with "CS21 your name Assign 1" in the subject line. For these programs, you may use ONLY these instructions: and nor or ori sll srl xor Run the programs by verifying the value of the PC is 0x00400000 (if needed, right-click the field and use Change Register Contents to set it) and then single stepping (pushing FIO) and observing the results in the Q1Spim register display window. Exercise 1: Start with the instruction that puts a single one-bit into the low order bit of register eight (SEO): Sto, Szero, Ox01 Now, by using only shift logical instructions and register to register logic instructions (use NO more immediate instructions). put the pattern 0x55555555 into register 31. You may not use another andi, ori or xori instruction to set another bit from scratch, you must work from the single bit you set in the first instruction or created directly from that bit. You will need to use more registers than just Stl. See how few instructions and registers you need to do this. Doing this in approximately twelve instructions is reasonable. It can be done in fewer. Again, you MAY NOT create any other data bits from scratch for this, only the single bit you started with

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

B01JXPZ7AK, 9780805360479

More Books

Students also viewed these Databases questions

Question

3. Evaluate your listeners and tailor your speech to them

Answered: 1 week ago