Wednesday, June 3, 2020

Assembly Program 8086-convert ASCII to BCD number

 ASCII to BCD Conversion

data segment
bcd db ?
ascii  dw 30h
data ends
code segment
start : assume  cs :code,  ds :data
mov ax , data
mov ds ,ax
mov ax ,ascii
mov cl , 04
SUB ax, 3030h
ROL ah , cl
ADD  ah ,al
mov bcd , ah
int 3
code ends
end start


Hex to ASCII program 8086
BCD to ASCII program 8086
ASCII to BCD program 8086
BCD to HEX
HEX to BCD
Block transfer in reverse
Block transfer using STRING instruction



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