Question: 2. Write a MIPS assembly program that reads in a string of characters using the SPIM system call and finds how many words the
2. Write a MIPS assembly program that reads in a string of characters using the SPIM system call and finds how many words "the" are in the string and prints it on SPIM Console. For example, there are three "the" words in the string "London is the capital and largest city of the United Kingdom. It stands on the River Thames." (The printed result on SPIM console for this example is: ... number of word 'the' in the string is: 3 The number of the characters in the string is less than 200.
Step by Step Solution
There are 3 Steps involved in it
Writing MIPS assembly code for this task involves several steps 1 Read the input string using SPIM system calls 2 Parse the string character by charac... View full answer
Get step-by-step solutions from verified subject matter experts
