Unformatted text preview: 2. Construct a stack-frame diagram that describes the organization of stack memory for a subprogram version of your answer to question 1. In to the space needed for the argument values, return value, and return address, you need only allocate space for the registers you will require to perform your algorithm, along with any additional local storage you might also require,. 3. Convert your solution to question 1 to a subprogram based on the memory organiza-tion described by your stack frame diagram in question 2. 4. Write a main program to edit a character string so that any small letters in the string are capitalized. As test data for your program, use the character string: "CMPT 150: Intro. to Computer Design" NOTE: a character string is a list of characters. Using the Submission Server, submit a zip ﬁle named Assign-4.zip that contains the main.lst ﬁle for your answer to question 3, along with a copy of your stack-frame dia-gram...
View Full Document
- Spring '08
- Subroutine, ASCII, character string