Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started