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
SEG : Segment of a Label:- The SEG operator is which is used to decide the segment address of the, variable, label or procedure and substitutes the segment base address in plac

Read Architecture: Look Through Main memory that located is conflicting the system interface. The least concerning feature of this cache unit is that it remain between the proc

The Intel Processors :         The Intel Corporation is the biggest manufacturer  of microchips  in the world,  in addition  to being  the leading provider of chips for PCs. I

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

to find the matrix addition

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

Difference between div and idiv

Assume that the registers are initialized to EAX=12345h,EBX =9528h ECX=1275h,EDX=3001h sub AH,AH sub DH,DH mov DL,AL mov CL,3 shl DX,CL shl AX,1 add DX,AX

Description: LC3 allows input from keyboard and output to display on the screen. This lab will exercise the input/output capability using LC-3 Assembly language. Procedure

Develop an assembly language program for the system and simulate it using MPLAB. From this produce a demo program (in Assembly language) that will run on the MatrixMultimedia Devel