Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MIPS LANGUAGE ONLY! please i need help understanding how to code this program, if you could please code in mips and break down with comments,

MIPS LANGUAGE ONLY! please i need help understanding how to code this program, if you could please code in mips and break down with comments, it would be greatly appreciated.

In this problem you will write a simple guessing game for the user to guess a random number between 0 and 511 (up to 10 points extra credit if you can make it between 1-400 instead without bias). Your program should flow as follows: 1. Asks the user to enter a user name. 2. Makes a call to syscall $random and sets the result as the initial LFSR state. 3. Calls state = LFSR(state) nine times to generate a random number between 0 and 511 using value B from each subsequent state. 4. For up to nine guesses a. Ask the user to guess a number. b. If the user guesses correctly, congratulate the user and end the program. c. Tell the user whether the guess was too high or too low. 5. Tell the user that all nine guesses were used, and the random number. NOTE: Please do NOT use QtSPIM or MARS style syscall conventions.

You must use the syscall convention presented in class. For instance to print a string: la $a0,stringaddr syscall $print_string

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_2

Step: 3

blur-text-image_3

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

Databases In Networked Information Systems 6th International Workshop Dnis 2010 Aizu Wakamatsu Japan March 2010 Proceedings Lncs 5999

Authors: Shinji Kikuchi ,Shelly Sachdeva ,Subhash Bhalla

2010th Edition

3642120377, 978-3642120374

More Books

Students also viewed these Databases questions

Question

7. What decisions would you make as the city manager?

Answered: 1 week ago