Wednesday, June 3, 2020

8086 Assembly Program - to convert BCD to ASCII

BCD TO ASCII CONVERSION:-


data segment
bcd db 20h
ascii  dw ?
data ends
code segment
start : assume  cs :code,  ds :data
mov ax , data
mov ds ,ax
mov al , bcd
AND al, 0Fh
ADD al , 30h
mov ah,bcd
AND ah,0F0h
mov cl, 04h
ROL ah , cl
ADD ah ,30
mov ascii ,ax
mov ah ,4ch
int 21h
code ends

Programs:-


For many other Assembly Language  Programs related to microprocessor 8086 visit our  BLOG 

There are programs of largest ,smallest ,division ,multiplication,odd/even,block operation ,string operations,BCD ,etc

No comments:

Post a Comment