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 ExitProcess,0
main ENDP
proc_1 PROC
call proc_2
add esi,4
add eax,10
mov array[esi],eax
ret
proc_1 ENDP
proc_2 PROC
call proc_3
add esi,4
add eax,10
mov array[esi],eax
ret
proc_2 ENDP
proc_3 PROC
mov array[esi],eax
ret
proc_3 ENDP
Q6. (True/False): The RET instruction pops the top of the stack
into the instruction pointer.
Answer:------ True
Q8. (True/False): In protected mode, each procedure call uses a
minimum of 4 bytes of stack space.
Answer:------ True
Q1. Which instruction pushes all of the 32-bit general-purpose
registers on the stack?
Answer:------ PUSHAD, The PUSHAD instruction pushes the
32-bit general-purpose registers on the stack, and the PUSHA
instruction does the same for the 16-bit general-purpose registers.
T
Get Answers For Free
Most questions answered within 1 hours.