Question: This is assembly mips program ask to complete the function and follow the output instructions. please complete lettercount function in mips code and you can

This is assembly mips program ask to complete the function and follow the output instructions. please complete lettercount function in mips code and you can use any main function to test.
added output instructions
D. int letterCount(String str, int[26] dst) This function takes a sorted lowercase string with duplicates as input and stores the number of times each letter appears in order of its appearance into dst. The function should return -1 if the string is not in sorted order or contains non-lowercase letters. In this error case, the values in dst is undefined (meaning it can be modified or not, but any values are invalid). The function makes no assumptions about the values stored in dst prior to the function call. All indexes not used remain unmodified. Function parameter and return value summary: str: starting address of null-terminated ASCII character string of any length dst: starting address of space to save integer counts of each letter returns: the number of entries used in dst. Return -1 for errors in the following cases: String not sorted in alphabetical order String contains any non-lowercase alphabetic characters (ie. ASCII characters not in range [97,122])
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
