Question: Intel x86 Assembly 1. ( 9 points) Write an assembly program to calculate the factorial of an unsigned integer n ( n! ) - You

Intel x86 Assembly

1. ( 9 points) Write an assembly program to calculate the factorial of an unsigned integer n ( n! )

- You need to prompt the user to enter an unsigned integer : Enter unsigned integer ( n! ) :

To do this , u se WriteString and ReadDec (see assignment6 , question3 for a similar example)

- Pass the entered number to the Factorial subroutine

- The calculated n! needs to be display ed on console screen from main subroutine

- See the book page 305 - 306 where you will find main and factorial subroutine s .

- M ake the required changes and run the program

- Use Step Into instead of S tep O ver to keep track of the stack, ESP, EBP, EIP during debugging

- To access the stack memory, copy the value of ESP from the register window and past it in the search text box in the memory window. Remember to have 0x ( it tells debugger that the number is a hexadecimal number) in front of the pasted ESP value ( 0x 4000407C ) .

Submit the following: Lastname1.asm

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!