subject

Create a MIPS program that fulfills the following specifications: 1. use the dialog syscall (#54) to input a string from the user 2. call a function which counts the number of characters and number of words in the string and returns these in $v0 and $v1; store these in memory 3. output (console) the string and counts to the user (see example below) 4. repeat from 1 until the user enters a blank string or hits "cancel" 5. additionally, use $s1 somewhere 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; Of course this function could be written without using an s register, but this is good practice in using the stack. 6. output a dialog message (syscall #59) to say goodbye before the program ends

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 14:00
Need ! will choose brainliest! discuss the role of abstraction in the history of computer software.
Answers: 1
question
Computers and Technology, 23.06.2019 21:40
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings. for each match, add one point to user_score. upon a mismatch, end the game. sample output with inputs: 'rrgbryybgy' 'rrgbbrybgy'
Answers: 3
question
Computers and Technology, 24.06.2019 01:30
Suppose a cpu with a write-through, write-allocate cache achieves a cpi of 2. what are the read and write bandwidths (measured by bytes per cycle) between ram and the cache? (assume each miss generates a request for one block.)
Answers: 1
question
Computers and Technology, 24.06.2019 02:30
Write the pseudo code for this problem based on what you learned from the video. the purpose is to design a modular program that asks the user to enter a distance in kilometers, and then converts that distance to miles. the conversion formula is as follows: miles = kilometers x 0.6214
Answers: 3
You know the right answer?
Create a MIPS program that fulfills the following specifications: 1. use the dialog syscall (#54) to...
Questions
Questions on the website: 13722360