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
Memory Mapped I/O Memory I/O devices are mapped into the system memory map with ROM and RAM. To access a hardware  device, simply write or  read  to  those  'special'  addresse

give the explaination of timing diagram minimum mode memory write cycle

CMPS : Compare String Byte or String Word:-The CMPS instruction may be utilized to compare two strings of Words or byte. The length of the string ought to be stored in the CX. If

Instruction set of 8086 : The 8086/8088 instructions are categorized into the following major types. This section describes the function of each of the instructions with approp

General Bus Operation The 8086 has a joined data and address bus commonly referred to as a time multiplexed address and data bus. The major reason behind  multiplexing address

define accounting.briefly explain the accounting concepts which guide the accountant at the recording stage.

Problem (a) Prepare the assembly code sequence for each of the four styles (accumulator, memory-memory, stack, load/store) of machine for the code fragment: A = B + C;

what is the hex value in ax after executing the instructions ax= 1E8A bx=4080 add al,bl sub ah,bh

Zero flag: The next line compares the value in register. A with the value 1. If they are equivalent, the Zero flag is set (to 1). The next line then jumps to start: only if th

CALL : Unconditional Call:- This instruction is utilized to call a subroutine from a basic program. In case of assembly language programming, the term procedure is utilized int