answersLogoWhite

0


Best Answer

.model small

.data

var1 db 25,32,49,10,81

var2 db 30 dup(0)

.code

mov ax,@data

mov ds,ax

mov cl,05h

mov dl,02h

lea si,var1

lea di,var2

l2: mov al,[si]

l1:mov ah,00h

div dl

mov [di+4],ah

dec di

cmp al,00h

jne l1

inc di

inc di

inc di

inc di

inc si

dec cl

jnz l2

mov ah,4ch

int 21

end

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: 8086 program for bcd to binary no?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between binary codes and bcd codes?

In BCD each digit of a decimal number is coded as a separate 4 bit binary number between 0 and 9.For example:Decimal 12 in BCD is shown as 0001 0010 (Binary 1 and Binary 2), in Binary it is 1100.


Write a program in 8086 assembly language that accepts two input characters pack two characters in one word and store them in consecutive locating in a memory buffer The first address of buffer is 400?

develop and test an assembly language to convert a two digit BCD number to binary


Show the number 47 in BCD and ACSII?

In BCD it is 00100111 In Binary, which is what you mean, it is 101111


Why is BCD used in computers?

BCD is used for binary output on devices that only display decimal numbers.


What is the BCD representation of the decimal number 41 in 6-bit?

41 in decimal is 0100 0001 in BCD (this is 8 bits not 6 bits)41 in decimal is 101001 in binary (this is 6 bits, but binary not BCD)There is no 6 bit BCD representation of the decimal number 41!


How do you make BCD binary up down counter with a 4-bit adder and a register?

I wants to know the advantages of 4 Bit BCD/Binary UP/DOWN


What are ASII and BCD how are they used?

ASCII (American Standard Code for Information Interchange) and BCD (Binary Coded Decimal) are standards for storing information in the binary sytem. ASCII is used for storing alphabetic, numeric, symbols, and control characters in 8-bit binary, and BCD is used for storing numbers 0-9 in 4-bit binary.


How do you convert binary number to bcd number on paper?

Example Binary 00111000 Convert to Decimal 56 Convert to BCD by using groups of four binary numbers for each digit 5 6 0101 0110


What is Alp for multiplication of two digit BCD numbers in 8086?

Assembly language programe for multiplication


Implementation of binary search algorithm using ASM assembler in 8086?

Hi, I hope this is useful http://www.indiastudychannel.com/projects/2748-Assembly-language-program-for-Binary-search.aspx good luck!


What do the letters BCD mean after a name?

binary-coded decimal


What is the decimal binary code for 30?

Decimal 30 = binary 11110. The decimal binary code (BCD), however, is 11 0000.