Unformatted text preview: e.g. R6). 2. Recall that the stack grows "upward" - i.e., from larger to smaller addresses. 3. Use M[ ] notation to reference memory locations. CALL 8104 SP ← SP-1 M[SP] ← PC PC ← 8104 At the end of each subroutine, execution returns to the main program. RETURN PC ← M[SP] SP ← SP+1 You received a raw score of 100% on this question. Question #2 Given initial register and memory values as shown below. Assume that CALL is a 1-word instruction, containing the opcode and the subroutine address. Address Memory Mallard - Intro to Computer Engineering I https://mallard2.math.illinois.edu/ECE290/ 1 of 1 5/1/11 2:29 PM...
View Full Document
This note was uploaded on 06/21/2011 for the course ECE 290 taught by Professor Staff during the Spring '08 term at University of Illinois, Urbana Champaign.
- Spring '08