Program for add integers from 1-1000, Visual Basic Programming

Using Visual Studio 2010 C++

1) Using Windows Explorer, make a copy of

Irvine\examples\Project_sample

folder in the folder where you keep your materials for this course.

Rename the folder to Week3A.

2) Copy template.asm (created above) into the Week3A folder and rename it

Add1000.asm

3) Open the project from VC++, remove main.asm from the project, and add Add1000.asm to the project.

4) Write an assembly language program that will add all of the integers from 1 through 1000 and place the sum in register eax.

a) Add a DumpRegs command before the end of the program.

b) Your program must use a loop which repeatedly adds the next integer to a running sum. (Do not use a mathematical shortcut.)

c) When your facilitator replaces the number 1000 by some other positive integer in your code, your program must still execute correctly.

 

Posted Date: 3/5/2013 7:03:07 AM | Location : United States







Related Discussions:- Program for add integers from 1-1000, Assignment Help, Ask Question on Program for add integers from 1-1000, Get Answer, Expert's Help, Program for add integers from 1-1000 Discussions

Write discussion on Program for add integers from 1-1000
Your posts are moderated
Related Questions
Earlier versions of VBScript had no mechanism for making user-defined constants. Constants, if utilized, were implemented as variables & distinguished from other variables by using

A program is needed to assist computing automobile repair bills. The cost of labor is $35 per hour. The costs for parts are subject to a 5% sales tax, which should be added t

Assume that s is a string variable that is supposed to contain a value to be converted to integer. Write a fragment of code that converts the value to integer variable and displ


This section will discuss the fundamentals of VBScript and define concepts such as datatypes, loops and others. VBScript Data Types VBScript contain only one data type called

HOW TO MAKE ER DIAGRAM FOR DISTRIBUTER MANAGEMNET OF WATER PURIFIAR

1.   Make project in Visual Studio 2008. 2.   Controller Class is used for functioning. 3.   Login Form where three people can login like manager, staff and receptionist we c

MODULE The Modules are the collection of VB statements. Modules are used to simplify the program development. To add a module to your project, choose the project tabpage, and t

Write a program to print a digital clock which displays the time for 2 hours . ..

write a XML with database with book details( book id, author ,subject, published year, vendor,price, language )