Menu

[solved]-Mips Assembly Write Assembly Language Procedure Takes Address Zero Terminated String Param Q39049174

MIPS Assembly

Write an assembly language procedure which takes the address ofa zero-terminated string as a parameter. The program should returnthe character which occurs the most times in a row in the string,and the length of this repeating run (you may assume there are noties). Also, write a main program to test the procedure. The mainprogram should input a string from the user (20 characters max),call your procedure, then print the two return values from yourprocedure. You must use the “standard” conventions discussed inclass for passing parameters and returning results.

Sample run:

Enter a string (max 20 characters): hello

The character ‘l’ appeared 2 times in a row.

Expert Answer


Answer to MIPS Assembly Write an assembly language procedure which takes the address of a zero-terminated string as a parameter. T… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *