Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a MIPS assembly program that when run in MARS at 25 instructions/second will display in the Memory segment a 4-byte sprite that moves from

Write a MIPS assembly program that when run in MARS at 25 instructions/second will display in the Memory segment a 4-byte "sprite" that moves from left to right across the top of the memory display.

Important: set the MARS slider bar to execute at a slower speed. Omitting this step will run at full speed and no output will be apparent.

For example, consider the portion of the assignment where the sprite moves from left to right. Assuming that you chose a "background" of the hex digit and a "sprite" of the hex digit 0, a "time lapse" series of snapshots of the Memory segment display would look like the data below:

Time 1: 0x0eeeeeee 0xeeeeeeee. . .

Time 2: 0xe0eeeeee 0xeeeeeeee. . .

Time 3: 0xee0eeeee 0xeeeeeeee. . .

Time 4: 0xeee0eeee 0xeeeeeeee. . .

Time 5: 0xeeee0eee 0xeeeeeeee. . .

Time 6: 0xeeeee0ee 0xeeeeeeee. . .

Time 7: 0xeeeeee0e 0xeeeeeeee. . .

Time 8: 0xeeeeeee0 0xeeeeeeee. . .

Time 9: 0xeeeeeeee 0x0eeeeeeee. . .

(0 is the sprite character)

You may choose the hex digits used for the "background" and the "sprite" - select two hex digits that have as much contrast as possible for best visibility. For instance, the digits e and c are poor choices because they look so similar.

The program will involve a series of nested loops. Write this program in stages - do not attempt to write the entire program top-down.

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

Database Design And SQL For DB2

Authors: James Cooper

1st Edition

1583473572, 978-1583473573

More Books

Students also viewed these Databases questions

Question

=+ Explain collective bargaining processes and objectives.

Answered: 1 week ago

Question

What are Decision Trees?

Answered: 1 week ago

Question

What is meant by the Term Glass Ceiling?

Answered: 1 week ago