Question

In: Computer Science

Write a MIPS program that plays the first dozen or so notes of your new hit...

Write a MIPS program that plays the first dozen or so notes of your new hit single (or if you don't have your own hit single, then your favorite)
(Go to the Help for information on MIPS instructions, pseudo instructions, directives, and syscalls.)
(Experiment with system call 31, 32 and 33.
(Put the notes to your song in a MIPS "array"
(Format and comment your program appropriately in MARS.

Solutions

Expert Solution

The following is the required MIPS Code-


Related Solutions

Write a MIPS assembly program that prompts the user first for a string, then for a...
Write a MIPS assembly program that prompts the user first for a string, then for a character. The program should then search the string for the character and print out the number of times the character appears in the string. You can use as many restrictions as you want, just be sure to list them. You must allocate space in the .data segment of your program for the user string.
Write a program that plays snakes and ladders.
 C++ program Write a program that plays snakes and ladders.  How to play:   Each player puts their counter on the tile that says 'start here'.   Take it in turns to roll the dice. Move your counter forward the number of spaces shown on the dice.   If your counter lands at the bottom of a ladder, you can move up to the top of the ladder.   If your counter lands on the head of a snake, you must slide down to the bottom...
Write a MIPS assembly program to first set up 10 bank accounts. Store the 10 account...
Write a MIPS assembly program to first set up 10 bank accounts. Store the 10 account numbers in an array named Accounts and the 10 balances in an array named Balances (hard-code them into your program). Your program will then repeatedly read in an account number, a transaction type (0 for deposit and 1 for withdraw), and a transaction amount. Your program will display the new balance after the transaction. An error massage will be printed if an incorrect account...
I have to do the following MIPS coding assignment. Question 1 Write a MIPS program that...
I have to do the following MIPS coding assignment. Question 1 Write a MIPS program that meets the following requirements (NOTE: your program statements should follow the order of the requirements and each requirement should correspond to only one assembly instruction): Loads the hexadecimal equivalent of 23710 into register 13 using an immediate bitwise OR instruction Loads the hexadecimal equivalent of 183410 into register 17 using an immediate bitwise OR instruction Performs the bitwise AND operation on the operands stored...
(HTML) Write a script that plays a “guess the number” game as follows: Your program chooses...
(HTML) Write a script that plays a “guess the number” game as follows: Your program chooses the number to be guessed by selecting a random integer in the range 1 to 1000. The script displays the prompt Guess a number between 1 and 1000 next to a text field. The player types a first guess into the text field and clicks a button to submit the guess to the script. If the player's guess is incorrect, your program should display...
Coding Problem 1: In this program, you are asked to write a program in assembly (MIPS)...
Coding Problem 1: In this program, you are asked to write a program in assembly (MIPS) which works as a simple calculator. The program will get two integer numbers, and based on the requested operation, the result should be shown to the user. a. The program should print a meaningful phrase for each input, and the result. i. “Enter the first number” ii. “Enter the second number” iii. “Enter the operation type” iv. “The result is” b. The user should...
C Program and pseudocode for this problem. Write a C program that plays the game of...
C Program and pseudocode for this problem. Write a C program that plays the game of "Guess the number" as the following: Your program choose the number to be guessed by selecting an integer at random in the rang of 1 to 1000. The program then asks the use to guess the number. If the player's guess is incorrect, your program should loop until the player finally gets the number right. Your program keeps telling the player "Too High" or...
Write a MIPS program that executes the statement: s = (a + b) – (c +...
Write a MIPS program that executes the statement: s = (a + b) – (c + 101), where a, b, and c are user provided integer inputs, and s is computed and printed as an output. Answer the following: a. Suppose the user enters a = 5, b = 10, and c = -30, what is the expected value of s? b. Which instruction in your program computed the value of s and which register is used? c. What is...
write a mips program to find the number of elements of the array that are divisible...
write a mips program to find the number of elements of the array that are divisible by 3.
Write a simple MIPS program that asks the user to input a string and then a...
Write a simple MIPS program that asks the user to input a string and then a character. The program should then count how many times that character appears in the string and print out that value. Please use comments.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT