This preview shows page 1. Sign up to view the full content.
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
This note was uploaded on 06/20/2010 for the course CMPT 150 taught by Professor Dr.anthonydixon during the Spring '08 term at Simon Fraser.
- Spring '08