Question: This information is provided so that you can answer questions 1 through 5 . The following is a partial main procedure with a call to

This information is provided so that you can answer questions 1 through 5.
The following is a partial main procedure with a call to a sub-procedure which will calculate the factorial of an integer argument x, and store the result (x!) in memory.
The initial address of the top of the stack (the value of ESP) is
The value of x is 12(decimal)
The address of result (DWORD) is 1200h
The address of the nextstep code label is 2080h
The initial value in EBP is 3Bh
.data
x DWORD 12
result DWORD
. code
main PROC
PUSH OFFSET result
PUSH x
CALL factorial
nextStep:
; cdots
exit
main ENDP
factorial PROC
PUSH EBP
MOV EBP, ESP
MOV EAX, 1
MOV ECX, , value of parameter x
again:
MUL ECX
LOOP again
MOV EDI,
; address of result
MOV
POP
EBP
EAX ; save the factorial in result
RET
; deconstruct stack frame
factorial ENDP
END MAIN
Please select the text that should be placed in the blank space labeled A in question 1.
EBP+12
EBP+8
2080h
[EDI]
 This information is provided so that you can answer questions 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!