Question: For Assembly Language, solve the following question: Please explain the steps briefly... Appreciated. Q6. Answer the following questions according to program given below. main PROC
Q6. Answer the following questions according to program given below. main PROC mov eax,0 push 8 call Accum call DumpRegs exit main ENDP Accum PROC push ebp mov ebp.esp mov ebx.[ebp 8] cmp ebx.2 add eax.ebx sub ebx,2 push ebx call Accum LI: pop ebp ret 4 Accum ENDP a) What wll be the value of EAX when DumpRegs is called? b) What will be the value of ElBX when DumpRezs is called? c) At mst how many stack bytes are used by the program' d) How many mes will the ADD EAX.EHX tatement exccute? e) Suppose we changed e ast statement in the Accum procedure to the following: ret H What would happen when uning the program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
