Showing posts with label microprocessor. Show all posts
Showing posts with label microprocessor. Show all posts

Tuesday, January 25, 2022

8086 Program to add two 8 bit Hexadecimal numbers microprocessor

Hello guys welcome to the blog !!

I have come up with a new code for you today.

We will  see a code in order to add two 8 bit hexadecimal numbers using microprocessor 8086 . The code is attached to below and also do check out other topics like Android , C programming , etc on your blog☺ !!


8086 program to add two 8-bit hexadecimal numbers source code :-

data segment

num1 db 50h

num2 db 30h

sum db ?

data ends

code segment

start :

assume cs:code, ds:data

mov ax,data

mov ds,ax

mov al,num1

mov bl,num2

add al,bl

mov ah,4ch

int21h

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

 

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

Tuesday, December 21, 2021

8086 Assembly Program to Divide Two 16 bit Numbers

8086 program to divide 2 16 bit numbers- 8086 16Bit division assembly program

data segment

num1 dw 2800h

num2 dw 0002h

result1 dw ?

data ends

code segment

start :

assume cs:code, ds:data

mov ax,data

mov ds,ax

mov ax,num1

mov bx,num2

div bx

mov result1,ax

mov ah,4ch

int21h

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

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

Saturday, December 18, 2021

8086 Program to subtract two 16-bit BCD numbers MICROPROCESSOR 8086

 

Assembly BCD program - subtract 2  16-bit bcd numbers


data segment

num1 dw 2800h

num2 dw 4900h

sum dw ?

data ends

code segment

start :

assume cs:code, ds:data

mov ax,data

mov ds,ax

mov ax,num1

mov bx,num2

add ax,bx

das

mov ah,4ch

int21h

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


Programs:-

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

Monday, October 25, 2021

8086 program to divide two 8 bit hexadecimal numbers

 8-bit hexdecimal numbers division in 8086 assembly program

data segment

n1 db 50h

n2 db 05h

data ends

code segment

start :

assume cs:code, ds:data

mov ax,data

mov ds,ax

mov al,n1

mov bl,n2

div bl

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