(For many other Assembly Language Programs related to microprocessor 8086, data structures and C++ visit our BLOG )
In assembly language 8086 we use mnemonics in order to perform arithmetic operations like in DIV/IDIV division.
So, Let's dive deep into what DIV and IDIV is ...
DIV:- It divides unsigned/signed double-word(32bit) by unsigned/signed word(16bit) .
IDIV:- It divides signed double-word(32bit) by signed word(16bit) .
In assembly language 8086 we use mnemonics in order to perform arithmetic operations like in DIV/IDIV division.
So, Let's dive deep into what DIV and IDIV is ...
DIV:- It divides unsigned/signed double-word(32bit) by unsigned/signed word(16bit) .
IDIV:- It divides signed double-word(32bit) by signed word(16bit) .
Below are programs for unsigned and signed division of 32-bit/16-bit:-
a) Unsigned:
data segment
no1 dd 02h
no2 dw 03h
q dw ?
r dw ?
data ends
code segment
start : assume cs :code, ds :data
mov ax ,data
mov ds , ax
lea si , no1
mov ax, [ si ]
mov dx,[ si+2 ]
DIV no2
mov q , ax
mov r , dx
mov ah ,4ch
int 21h
code ends
end start
b) Signed 32-bit/16-bit program 8086 . (Click on the Link for detailed program code.)
data segment
For many other Assembly Language Programs related to microprocessor 8086 and programs of Data Structures , C++, visit our BLOG
There are programs of largest ,smallest ,division ,multiplication,odd/even,block operation ,string operations ,etc
no1 dd 02h
no2 dw 03h
q dw ?
r dw ?
data ends
code segment
start : assume cs :code, ds :data
mov ax ,data
mov ds , ax
lea si , no1
mov ax, [ si ]
mov dx,[ si+2 ]
IDIV no2
mov q , ax
mov r , dx
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
Programs:-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
For many other Assembly Language Programs related to microprocessor 8086 and programs of Data Structures , C++, visit our BLOG
There are programs of largest ,smallest ,division ,multiplication,odd/even,block operation ,string operations ,etc
Amazing blog. Best for learning microprocessor 8086 codes
ReplyDelete