Showing posts with label series. Show all posts
Showing posts with label series. Show all posts

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

Monday, September 13, 2021

8086 ASSEMBLY PROGRAM TO FIND Sum of Series of 8 bit Hexadecimal number

data segment

array1 db 50h,30h,40h,60h,10h

sum db ?

data ends

code segment

start :

assume cs:code, ds:data

mov ax,data

mov ds,ax

mov cl,04h

mov si, offset array1

mov al,[si]

next: inc si

add al,[si]

dec cl

jnz next

mov sum,al

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

Monday, September 6, 2021

8086 ASSEMBLY PROGRAM TO FIND sum of series OF NUMBERS/ARRAY/SERIES

 

arrayS db 01h, 08h,09h, 04h,05h02h,03h,06h,07h ,0AH   (10 numbers)

count dw 0AH

data ends

code segment

start :

assume cs:code, ds:data

mov ax,data

mov ds,ax

mov cx,count

mov si, offset arrayS

l :mov al,[si]

add al,[si]

jnc next1

next: inc si

loop l

mov ah,4ch

int 21h

code ends

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

 

 

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

Sunday, December 6, 2020

8086 Program to find addition of sum of series of 16-bit bcd number

Hey!!

Today we will see microprocessor program to find the Sum of Series of 16 bit bcd number using assembly language 8086.

Let's go!!


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]

daa

dec cl

jnz next

mov sum,ax

mov ah,4ch

int 21h

code ends

end start

 

 

Programs:-

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

 Block transfer OVERLAPPING 

 

Wednesday, October 28, 2020

8086 Assembly Program to Sort Series / Array in Ascending order in 8086

In this post you will get the program code to sort the series or an array in ascending order using the microprocessor 8086 !! So,lets Begin....

data segment

arr1 dw 44h,66h,91h,20h,33h,60h,88h,50h

count dw 07h

data ends

code segment

assume cs:code, ds:data

mov ax,data

mov ds,ax

mov dx,count

iter: mov bx,offset arr1

mov cx,dx

comps: mov ax,[bx]

cmp ax,[bx+02h]

jc skip

xchg ax, [bx+02h]

mov [bx],ax

skip: inc bx

inc bx

loop comps

dec dx

jnz iter

code ends

end start

Programs:-

For many other Language Programs of microprocessor 8086, C++ , C , Data Structures visit our  BLOG 

There are programs of Object-Oriented Programing, Operators (logical, arithmethic ,relational,etc) ,exception handeling , inheritance ,string operations ,etc