Unformatted text preview: also submit a printout of the list file) Stack: Assume that the stack pointer is appropriately initialized. Push a 0x37, 0xAB, 0xEF12 onto the stack, call a subroutine. In the subroutine, push 0x1C onto the stack, then return from subroutine. Show the stack growing and shrinking with each described step. What address do you return to with the described scenario. Predict the outcome (i.e., make a table) and then TRY IT , i.e., run this code by single stepping through it. Print out a screen shot of your code that also shows the stack (in a memory window) after the return from subroutine. Also print the list file of your program....
View Full Document
- Spring '09
- Microprocessor, Subroutine, Electrical & Computer Engineering