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
ALP to preform of two 16-bit numbers in register addressing mode

Write Policy A write policy determines how the cache deals with a write cycle. The 2 common write policies areWrite-Throughand Write-Back. In Write-Back policy, the cache behav

how to code

#include"lcd.asm"       ; assembly file is included for displaying lcd characters Main: PORTA EQU 0xF80  ; PORTS PORTB EQU 0xF81 PORTC EQU 0xF82 PORTD EQU 0xF83 R

how o create the flow chart for scan ROW4, Column 1 and 3.tq

This unit introduces the topic of evaluating interactive products. It is a short unit as evaluation is discussed in more detail in Block 4. Its brevity should give you additional t

Description Write a MIPS program that reads a string from user input, reverse each word (defined as a sequence of English alphabetic letters or numeric digits without any punctu

Write an assembly program that will compute and output tuition cost: a. accept keyboard input of the number of credit hours taken b. accept keyboard input of the type of classes 1

Program : Write an assembly program to find out the number of positive numbers and negative numbers from a given series of signed numbers. Solution : Take the i th num

Maximim and Minimum mode 8088 system : In the maximum mode, the pin 880 is lastingly high. The functions and timings of other pins of 8088 are exactly similar to 8086. Due to t