Multi byte Division using Hexadecimal numbers (8086)


Program for Multi byte Division using Hexadecimal numbers (8086)

Description:

This program divide 32 bits (4bytes) unsigned hexadecimal number by a 16bits (2bytes) hexadecimal number using 8086 instructions.

Program:

DATA    SEGMENT

DNT DW 0000,8889

DR DW 0088

Q  DW 1 DUP(0)

R  DW 1 DUP(0)

DATA    ENDS

CODE    SEGMENT

ASSUME CS:CODE, DS:DATA

START:  MOV AX,DATA

MOV DS,AX

MOV DX,DNT

MOV AX,DNT+2

DIV DR

DAA

MOV Q,AX

MOV R,DX

INT 3

CODE    ENDS

END START

Advertisements