Question: Please save $s1 on Stack and restore Create a MIPS program that fulfills the following specifications: use the dialog syscall (#54) to input a string

Please save $s1 on Stack and restore  Please save $s1 on Stack and restore Create a MIPS program

Create a MIPS program that fulfills the following specifications: use the dialog syscall (#54) to input a string from the user call a function which counts the number of characters and number of words in the string and returns these in SvO and Sv1; store these in memory output (console) the string and counts to the user (see example below) repeat from 1 until the user enters a blank string or hits "cancel" additionally, use $s1 in your function so that you must save it on the stack at the top of your function and restore it before the function exits output a dialog message (syscall #59) to say goodbye before the program ends

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!