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
Ask question #MinimuWHAT ARE CONSTANTS AND WHAT DO THEY DO?m 100 words accepted#

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


write a program using assembly language that print your name

can any one help me in my project by using assembly language

DIV: Unsigned Division:- This instruction performs unsigned division operation. It divides an unsigned word or double word by a 16-bit or 8-bit operand. The dividend might be in t

bello need help with a final project , I have to do a presentation on a digital stop watch , but I have to use edsim51 to make it wondering if you guys can help me

Program is written but has errors returning values from the procedure.

Queue Operation :   RQ/CT0, RQ/G1-Request/Grant:   These pins are utilized by other local bus masters, in themaximum mode, to force the processor to release the loca

implement the following c++ code in assembly language using the block-structured .IF and .while directives