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
I was wondering if you guys could offer me some advice and help on how to proceed - not answers- for a homework problem I am attempting. I am currently working on a "bomb" project

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

SHORT  : The  SHORT operator denoted to the assembler that only one byte is needed to code the displacement for a jump (for example displacement is within -128 to +127 bytes fr

Conditional branch Instruction When these type of instructions are executed, they transfer control of execution to the address mention relatively in the instruction, provided t

Ask question #MinimuWHAT ARE CONSTANTS AND WHAT DO THEY DO?m 100 words accepted#

Write an assembly program that adds the elements in the odd indices of the following array. Use LOOP. What is the final value in the register?

HELLO I AM TRYING TO ADD AND SUBTRACT BUT I SEEM CAN''T FIND THE CORRECT REGISTER TO PUT IN

;StrNCpyAsm - copy zero terminated string2 to zero terminated string1, ; but copy no more than count (parameter) characters ; or the length of string2, whi

IMUL: Signed Multiplication: This instruction multiplies a signed byte by a signed bit in source operand e in the register AL or signed word in source operand by signed word in th

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;