Summation of Series 1+4+7+10+13+......... 149 in Assembly Programming Language
the Code is given below:
;1+4+7+10+13=35
org 100h
.DATA
ANS DW ?
.CODE
MAIN PROC
MOV AX,@DATA
MOV DS,AX
MOV CX,5
MOV AX,0
MOV BX,1
LABEL:
ADD AX,BX
ADD BX,3
MOV ANS,AX
LOOP LABEL
END MAIN
ret
----------------------------------------------------------------------------
How To download Emulator 8086:
• How to Install Emulator 8086
this is flow control instruction in assembly programming Language
Write a sequence of instruction to code each of the following A) put the sum 1+4+7+......+148 in AX
Put the sum 1+4+7+...+148 in AX main endp MOV CX, 49;counter for FOR LOOP MOV AX,1 ;adds the sum of series and store the result MOV BX,1 ;used to move the series 3 steps forward forward Label: ADD AX,BX ADD BX,3 LOOP Label ;DOS exit INT 21H MOV AH,4CH INT 21H.
Problem – Write a program in 8086 microprocessor to find out the sum of series of even numbers, where numbers are stored from starting offset 500 and store the result at offset 600.
Introduction to Assembly Language Programming: For Pentium and RISC Processors.
How to run sum of series in emulator 8086?
how to do sum between two numbers(interval)?
Add 2 numbers in assembly language and print the result?
Sum of the numbers between 1 to 100
Sum Program in Assembly Language?
How to print summation of series in Assembly Programming Language ?
8086 program to find sum of Even numbers in a given series?
8086 program to find sum of odd numbers in a given series?
8086 program to generate AP series of n numbers
8086 program to generate G.P. series of n numbers
8086 program to find GCD of two numbers and print the GCD
8086 program to find average of n numbers
8086 program to determine cubes of numbers in an array of n numbers
8086 program to determine squares of numbers in an array of n numbers?
8085 program to find the sum of series of even numbers?
8086 program to add two 8 bit BCD numbers?
8086 program to subtract two 16 bit BCD numbers?
8086 program to multiply two 8 bit numbers?
8086 program to add two 16 bit BCD numbers with carry?
8086 program to multiply two 16-bit numbers?
8086 program to add two 16-bit numbers with or without carry?
8086 program to subtract two 8 bit BCD numbers?