Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using microsft visual studios x86 assembly language please enter the code from the ide, i have recieved an answer but i cannot get it to

using microsft visual studios x86 assembly language

please enter the code from the ide, i have recieved an answer but i cannot get it to work, i'll post the code at the end of this page

The question

image text in transcribed

The startup code provided in class

image text in transcribed

a previous answer that I cannot figure out.

image text in transcribed

objective: Learn subroutine, stack, stack frames, ESP, EBP, EIP, and input and output processing. Requirements: 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 ofStep over to keep track ofthe 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 (0x4000407C). o Submit the following: Lastnamel.asma

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 11 The Database For Big Data And Analytics

Authors: Cristian Molaro, Surekha Parekh, Terry Purcell, Julian Stuhler

1st Edition

1583473858, 978-1583473856

More Books

Students also viewed these Databases questions

Question

=+ d. What happens to Oceanias trade balance?

Answered: 1 week ago

Question

=+ e. What happens to Oceanias real exchange rate?

Answered: 1 week ago