Question

Consider the program below The initial value of the Stack Pointer ESP = 0018 FF8C. What...

Consider the program below The initial value of the Stack Pointer ESP = 0018 FF8C. What is the value of the STACK POINTER (ESP) after each CALL instruction and each RET instruction below. INCLUDE Irvine32.inc .DATA .CODE main PROC mov ax,val1 call proc1 (1) ESP=____________(After the CALL) nop exit main ENDP proc1 PROC ;Begin Procedure nop call proc2 (2) ESP=____________(After the CALL) nop ret (3) ESP=____________(After the RET) proc1 ENDP proc2 PROC ;Begin Procedure nop call proc3 (4) ESP=___________(After the CALL) ; nop ret (5) ESP=____________(After the RET) proc2 ENDP proc3 PROC ;Begin Procedure nop nop ret (6) ESP=____________(After the RET) proc3 ENDP END Question 1 options: (1) 0018FF88 (2) 0018FF80 (3) 0018FF84 (4) 0018FF84 (5) 0018FF80 (6) 0018FF8C (1) 0018FF88 (2) 0018FF80 (3) 0018FF84 (4) 0018FF80 (5) 0018FF88 (6) 0018FF8C (1) 0018FF88 (2) 0018FF80 (3) 0018FF84 (4) 0018FF84 (5) 0018FF80 (6) 0018FF8C (1) 0018FF88 (2) 0018FF84 (3) 0018FF8C (4) 0018FF80 (5) 0018FF88 (6) 0018FF84 (1) 0018FF88 (2) 0018FF80 (3) 0018FF84 (4) 0018FF88 (5) 0018FF84 (6) 0018FF8C

Homework Answers

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
6. (True/False): The RET instruction pops the top of the stack into the instruction pointer. 8....
6. (True/False): The RET instruction pops the top of the stack into the instruction pointer. 8. (True/False): In protected mode, each procedure call uses a minimum of 4 bytes of stack space. 1. Which instruction pushes all of the 32-bit general-purpose registers on the stack? 20. What values will be written to the array when the following code executes? .data array DWORD 4 DUP(0) .code main PROC mov eax,10 mov esi,0 call proc_1 add esi,4 add eax,10 mov array[esi],eax INVOKE...
7. (True/False): Nested procedure calls are not permitted by the Microsoft assembler unless the NESTED operator...
7. (True/False): Nested procedure calls are not permitted by the Microsoft assembler unless the NESTED operator is used in the procedure definition. 15. What will be the final value in EAX after these instructions execute? push 5 push 6 pop eax pop eax 3. Which instruction pops the stack into the EFLAGS register? 17. Which statement is true about what will happen when the example code runs? 1: main PROC 2: mov eax,30 3: push eax 4: push 40 5:...
13. (True/False): The register list in the USES directive must use commas to separate the register...
13. (True/False): The register list in the USES directive must use commas to separate the register names. 11. (True/False): The USES operator lets you name all registers that are modified within a procedure. 2. Which instruction pushes the 32-bit EFLAGS register on the stack? 18. Which statement is true about what will happen when the example code runs? 1: main PROC 2: mov eax,40 3: push offset Here 4: jmp Ex4Sub 5: Here: 6: mov eax,30 7: INVOKE ExitProcess,0 8:...
Use STACK for storing the return address for a procedure return of the following program given...
Use STACK for storing the return address for a procedure return of the following program given below. Show the contents of stack following each CALL and RETURN instructions: Main Program Memory Address Instructions 6000H ----- 6050H CALL Proc 1 ---- 6080H CALL Proc 2 END Procedure 1 Memory Address Instructions 5000H --- 5060H CALL Proc 2 RETURN Procedure 2 Memory Address Instructions 2000H --- 2030H CALL Proc 3 ----- RETURN Procedure 3 Memory Address Instructions 3000H RETURN …..
A) Is the code below secure? Explain your rationale. ExitProcess PROTO .data firstval qword 20002000h secondval...
A) Is the code below secure? Explain your rationale. ExitProcess PROTO .data firstval qword 20002000h secondval qword 11111111h thirdval qword 22222222h sum qword 0 .code main proc      mov rax,firstval                         add rax,secondval             add    rax,thirdval      mov    sum,rax      mov    ecx,0      invoke ExitProcess main endp end main b) Transmitted messages often include a parity bit, whose value is combined with a data byte to produce an even number of 1 bits. Suppose a message byte in the AL...
Microprocessor 8086 material. Choose the correct answer. 1- For a (64K x 8) RAM, the number...
Microprocessor 8086 material. Choose the correct answer. 1- For a (64K x 8) RAM, the number of address lines is: * 17 19 16 15 20 14 18 2-Which of the following instructions requires (BYTE PTR)? * SHR [500H], 3h LDS SI, [1000H] LAHF PUSH [9AAH] ADD AX, [800H] 3-Where are the interrupt vectors located in the microprocessor’s memory? * in the first 64K byte in the first 1K byte in the first 256K byte in the first 1M byte...
JAVA What values are stored in variables a and b in the code below? public class...
JAVA What values are stored in variables a and b in the code below? public class StackQuestion { public static void main(String[] args) { Stack s = new Stack(); s.push(1); s.push(2); s.push(3); s.pop(); s.pop(); s.push(4); s.push(5); s.pop(); s.pop(); int a = s.pop(); s.push(6); int b = s.pop(); } } What numbers are stored in variable a and b when the code below executes? public class QueueQuestion { public static void main(String[] args) { Queue s = new Queue(); s.enqueue(1); s.enqueue(2);...
This program is in C++, And please consider " sort pass #" for the output: Write...
This program is in C++, And please consider " sort pass #" for the output: Write a program that uses two identical arrays of eight integers. It should display the contents of the first array, then call a function to sort it using an ascending order bubble sort, modified to print out the array contents after each pass of the sort. Next the program should display the contents of the second array, then call a function to sort it using...
(5 pts.) Consider the C program below. Recall that fflush() just forces the printed value to...
(5 pts.) Consider the C program below. Recall that fflush() just forces the printed value to be output immediately. (For space reasons, we are not checking error return codes, so assume that all functions return normally.) int main () {    if (fork() == 0) {        if (fork() == 0) {           printf("3"); fflush(stdout);        }        else {           pid_t pid; int status;           if ((pid = wait(&status)) > 0) {                  printf("4"); fflush(stdout);           }        }...
Consider the reaction and the initial concentration and initial rate data below. BrO3-(aq) + 5 Br-...
Consider the reaction and the initial concentration and initial rate data below. BrO3-(aq) + 5 Br- (aq) + 6 H+(aq) ® 3 Br2 (aq) + 3 H2O (l) Experiment [BrO3-], (M) [Br-],(M) [H+],(M) Initial Rate (M/sec) 1 0.10 0.10 0.10 1.2 x 10-3 2 0.20 0.10 0.10 2.4 x 10-3 3 0.10 0.30 0.10 3.5 x 10-3 4 0.20 0.10 0.15 5.4 x 10-3 Determine the rate law for this reaction What is the overall order of the rate law?...