Monday, September 27, 2021

8086 assembly program to find sum of series of 16 bit hexadecimal numbers sum of series

Program to find sum  of series of 16 bit hexadecimal numbers


data segment

array1 dw 5000h,3000h,4000h,6000h,1000h

sum dw ?

data ends

code segment

start :

assume cs:code, ds:data

mov ax,data

mov ds,ax

mov cl,04h

mov si, offset array1

mov ax,[si]

next: inc si

add ax,[si]

dec cl

jnz next

mov sum,ax

mov ah,4ch

int 21h

code ends

end start

Block transfer OVERLAPPING 
Block transfer(Simple Program)
Block Transfer(REVERSE ORDER)
Addition of 8-bit  BCD8086 program
addition of 16-bit bcd program
Division of 32/16 bit program
Subtraction of 8-bit program
Subtraction of 8-bit BCD program
Subtraction of 16-bit program
Subtraction of 16-bit BCD program
String reverse 8086 program
block transfer using string
string concatenation
string length calculation
Block Transfer 
Block reverse
Hex to ASCII program 8086
BCD to ASCII program 8086
ASCII to BCD program 8086
BCD to HEX
HEX to BCD
Programs:-

For many other Language Programs of microprocessor 8086, C++ , Data Structures , etc and MSBTE diploma,BCA,MCA and engineering related concepts visit our  BLOG

1 comment:

  1. The best code. Code runs without erroe !! works for 16 bit hex sum of series.
    Thanks :)

    ReplyDelete