Question: Write a function called ReplaceLetterWithAsterisk that takes two arguments as inputs. Use the MIPS calling convention; use $a registers to pass the arguments to your

Write a function called ReplaceLetterWithAsterisk that takes two arguments as inputs. Use the MIPS calling convention; use $a registers to pass the arguments to your function. The first argument contains the string address and the second argument contains the character to replace. The ReplaceLetterWithAsterisk function will then find all instances of the letter in your string and replace them with an asterisk.

string used is no more than 63 bytesWrite a function called ReplaceLetterWithAsterisk that takes two arguments as inputs. Use

Here is sample output from the program: Please enter your string string Manipulation Tables and Simple Function Calls Please enter the character to replace: this is the input this is the input Here is the output STRNG mAN*PULAT*ON tABLES AND s*MPLE FUNCT* ON CALLS Please make sure your output line contains the string "Here is the outputi sample output. as shown in the Hint 1: Each character of a string is a byte. We need a character buffer (memory space) to hold the input string in memory. To declare memory space for a 63-byte string and its null terminator, you car use the following code: .data sone.strangws space. 64

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!