Posted By : Sehrish Kay
Posted On : 2 November 2014
Keywords : 8086 Display Number, Assembly Language Display Number using Mul & Div, 8086, Assembly Language

8086 Assembly Language Program To Display 3 Numbers Using Mul & Div Command

Problem Statement

Write an Assembly language program as per following instructions and tell how you can show 3 digits numbers with help of using MUL and DIV commands


Expected Output


Sample Code 8086: To Display 3 Digits Or Numbers With Using Mul And Div Commands

Sample Code


.model small
.stack 100h
.data
.code
main proc
mov ax , @data
mov ds , ax

mov bl , 30
mov al , 6

mul bl

mov cl , 100
div cl

add al , 48
mov dl , al
mov bh , ah
mov ah ,02
int 21h


mov al , bh
mov ah , 00

mov cl , 10
div cl

add al , 48
mov dl , al
mov bh , ah
mov ah ,02
int 21h


add bh , 48
mov dl , bh
mov ah , 02
int 21h




mov ax , 4ch
int 21h
main endp
end main


Run The Program In Emu 8086


Sehrish Kay

I am interested in writing articles on 8086.