Course Solutions Uncategorized (Solved) : Main Routine M1 Calls Procedure P1 Return Address Value Rm Assume Initial Stack Pointer 32 Q27045790 . . . .

(Solved) : Main Routine M1 Calls Procedure P1 Return Address Value Rm Assume Initial Stack Pointer 32 Q27045790 . . . .

 

Main routine M1 calls a procedure P1 (The return address is a value RM. Assume the initial stack pointer has a 32 bit value of Ox0700C. Procedure P1 will be using Ss0,$s1, Ss2 and need to be saved on the stack. RM (which is in Sra) need to be saved on the stack (since there is a call to another procedure). In P1, there is a call of procedure P2 (return address is a value RP1). Procedure P2 is likely to use $$4, $s5 (and hence need to be saved on stack). Show the SP value right after $s5 is saved. Also, show the stack contents (updated in this sequence).

Main

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post