Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data Fundamentals Concepts, Drivers & Techniques

Authors: Thomas Erl, Wajid Khattak, Paul Buhler

1st Edition

0134291204, 9780134291208

More Books

Students also viewed these Databases questions

Question

How do modern Dashboards differ from earlier implementations?

Answered: 1 week ago