Question: Rewrite your program in #1 to use a procedure for the conversion. In other words, if you send apple to the procedure it will return

Rewrite your program in #1 to use a procedure for the conversion. In other words, if you send "apple" to the procedure it will return "APPLE". Leave the rest of the code in main. Test it on the source strings: "loop2:" and "Elephant!" In other words, code in your main program calls the procedure twice, once for each source string. You should print a memory screen shot after the program runs, showing that both strings were converted check the ASCII box. You should add code to check if each byte is in fact a lowercase letter, and only convert if it is; otherwise it should just copy it. In the program for problem 1 you could use $tn registers but in this program you should follow the conventions for using $sn and $tn registers. Also, use the directive space for the upper case strings, reserving at least 10 bytes for each of the 2 upper strings. Table 2: Rubric for problem 2 Rewrite your program in #1 to use a procedure for the conversion. In other words, if you send "apple" to the procedure it will return "APPLE". Leave the rest of the code in main. Test it on the source strings: "loop2:" and "Elephant!" In other words, code in your main program calls the procedure twice, once for each source string. You should print a memory screen shot after the program runs, showing that both strings were converted check the ASCII box. You should add code to check if each byte is in fact a lowercase letter, and only convert if it is; otherwise it should just copy it. In the program for problem 1 you could use $tn registers but in this program you should follow the conventions for using $sn and $tn registers. Also, use the directive space for the upper case strings, reserving at least 10 bytes for each of the 2 upper strings. Table 2: Rubric for problem 2
Step by Step Solution
There are 3 Steps involved in it
Answer to Question ID 13606339 Objective Rewrite your MIPS assembly program to Use a procedure to convert a source string to uppercase The procedure should Take a string address as input Take the dest... View full answer
Get step-by-step solutions from verified subject matter experts
