Program to add 8-bit series numbers-assembly language, Assembly Language

Program: Write a program to perform addition of a series of 8-bit numbers. The series have 100 (numbers).

Solution :

In the first program, we have been implemented the addition of two numbers.  In this, we demonstrate the addition of 100 (D) numbers. Firstly, the resulting sum of the first 2 numbers will be stored. To perform this sum, the third number will be added. This process will be repeated until all the numbers of series are added. A conditional  jump instruction will be utilized to implement the counter checking logic. The comments describe the purpose of each instruction.

403_program1.jpg

The use of statement ORG 200H in this program is not necessary. We have used this statement here only to explain the way to use it. It will not affect the result at all. When a program loaded into the memory whatever is the address assigned for CODE, the executable code begin at the offset address 0200H due to the above statement. Same to DW, the directive DB reserves space for the list of 8-bit numbers in the series. The process for entering the program, coding and execution has already been discussed. The result of addition operation will be stored in the memory locations allotted to the label RESULT.

Posted Date: 10/12/2012 7:50:41 AM | Location : United States







Related Discussions:- Program to add 8-bit series numbers-assembly language, Assignment Help, Ask Question on Program to add 8-bit series numbers-assembly language, Get Answer, Expert's Help, Program to add 8-bit series numbers-assembly language Discussions

Write discussion on Program to add 8-bit series numbers-assembly language
Your posts are moderated
Related Questions

GROUP : Group the Related Segments:- The directive which is used to form logical groups of segments with same purpose or type. This isused to inform the assembler to form a log

CBW: Convert Signed Byte to Word: This instruction converts a signed byte to a signed word. In other terms, it copies the sign bit of a byte to be converted to all of the bits in

How to write an assembly program The initial step in writing an assembly language program is to identify and study the problem. After studying the problem, choose the logical m

Machine Level Programs In this section, a few machine levels programming instance, rather then, instruction sequences are presented for comparing the 8086 programming with that

AAA: ASCII Adjust after Addition operation the AAA instruction is executed after an ADD instruction that adds 2 ASCII coded operands to give a byte of outcome in the AL. The AAA i

ASSUME: Assume Logical Segment Name:- The ASSUME directive which is used to inform the assembler, the specified names of the logical segments to be consider for different segme

take an integer and its base and the base in which you want to convert the number from user and perform conversion.

General terms for Cache : Cache Hits : When the cache consisted the information requested, the transaction is said to be a cache hit. Cache Miss : When the cache does n

Linking a program The DOS linking program LINK.EXE links the different object modules of function library routines and source program to produce an integrated executable code o