Answered step by step
Verified Expert Solution
Question
1 Approved Answer
write in x86 language. Thank you. 1. (9 points) Write an assembly program to calculate the factorial of an unsigned integer n (n!) You need
write in x86 language. Thank you.
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, use WriteString and ReadDec (see assignment6, question3 for a similar example Pass the entered number to the Factorial subroutine The calculated n! needs to be displayed on console screen from main subroutine See the book page 305-306 where you will find main and factorial subroutines. Make the required changes and run the program Use Step Into instead of Step Over to keep track of the stack, ESP, EBP, EIP during debugging To access the stack memory, copy the value ofESP 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 (0x4000407C)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started