Program to accept the input from user, Assembly Language

Write an assembly language program that will:

  1. accept keyboard input of a positive integer value N;
  2. compute the sum S= 1+ 2 + 3 + ... + N;
  3. print (output) the computed sum S.

Note (For example if N=5 then the program will add 1+2+3+4+5 and print 15)

Posted Date: 3/19/2013 6:54:42 AM | Location : United States







Related Discussions:- Program to accept the input from user, Assignment Help, Ask Question on Program to accept the input from user, Get Answer, Expert's Help, Program to accept the input from user Discussions

Write discussion on Program to accept the input from user
Your posts are moderated
Related Questions
Convert 751 to hex and show what it would look like stored at TheNumber WORD ? (hint: answer in hex pairs)

Prime Finder - assembly program: Problem:  Prime Finder   In this problem you will write a small program that tests whether a given integer is a prime number or not.  Let's

how i can write a program to divide 2 numbers

How to define procedures?

DAA: Decimal Adjust Accumulator:- This instruction is utilized to convert the result of the addition operation of 2 packed BCD numbers to a valid BCD number. The conclusion has to

SCAS : Scan String Byte or String Word:- This instruction scans a string of words or byte for an operand word or byte specified in the register AL or  register AX. The string i

Pointer and Index Registers The pointers contain offset within the specific segments. The pointers BP, IP and SP generally containoffsets within thedata, code and stack segment

1. Write a program that calculates the Fibonacci series: 1, 1, 2, 3, 5, 8, 13, ….. (Except for the first two numbers in the sequence, each number is the sum of the preceding two n

Write a program that will input a number from the keyboard, and then display the number in binary form, as well as the number of one's in the number. Hint: Shift the value left (or

Your assignment for this project is to write an assembly language program that checks if the user's input is a valid ISBN number. A sample run of your program might look like: