answersLogoWhite

0


Best Answer

Dis macro str mov ah,09h lea dx,str int 21h endm data segment msg2 db "binary number is : $" str1 db 20 dup('$') str2 db 20 dup('$') no dw 100 line db 10,13,'$' data ends code segment assume ds:data,cs:code start: mov ax,data mov ds,ax lea si,str1 mov ax,no mov bh,00 mov bl,2 l1:div bl add ah,'0' mov byte ptr[si],ah mov ah,00 inc si inc bh cmp al,00 jne l1 mov cl,bh lea si,str1 lea di,str2 mov ch,00 add si,cx dec si l2:mov ah,byte ptr[si] mov byte ptr[di],ah dec si inc di loop l2 dis line dis msg2 dis str2 mov ah,4ch int 21h code ends end start ;------ ;output ;------ binary number is : 1100100

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write an assembly language program to convert bcd number to decimal?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Math & Arithmetic

How do you draw a circle in assembly program?

You can draw a circle in assembly program by using a compass-like tool. Secure the tip of the compass and then rotate the compass tool so that it completes the circle.


Where is the percentage button on the TI-83 plus?

Does not exist. The only way to get the percentage character is to use an assembly program that lets you access "hidden" characters. If you just need to convert a number to a percentage, just divide the number by 100.


What is the formula for adding fractions with variable?

In order to add a fraction to a variable the fraction must be converted to decimal as computers cannot understand fractions, thats why they have floating points. On the other hand you could produce an answer in decimal and then convert it into a fraction afterwards but it would be overly complicated for a program to do this. I suggest if you are seriously into this somewhat eccentric behaviour you should try the program Mathematica from Wolfram research which is very expensive.


Write an assembly language program to find 2's complement of a number FFH?

Code for An Assembly Language Program to find 2's Complement of given binary number in Assembly LanguageData Segment num db 00000010B Data Ends Code Segment Assume cs:code, ds:data Begin: mov ax, data mov ds, ax mov es, ax mov ah, 0000h mov al, num NOT al mov bl, al adc al, 00000001B mov bl, al Exit: mov ax, 4c00h int 21h Code Ends End Begin


What are the advantages and disadvantages of machine language?

AdvantageThe only advantage is that program of machine language run very fast because no translation program is required for the CPU.DisadvantagesIt is very difficult to program in machine language. The programmer has to know details of hardware to write program.The programmer has to remember a lot of codes to write a program which results in program errors.It is difficult to debug the program.

Related questions

An assembly language program that will take three decimal input and display minimum of them?

program that take three decimal number as input and find the largest among them in assembly language


What application will be used to convert an assembly language source program into machine language?

An Assembler converts assembly language instructions into machine language.


How would you define assembly language?

assembly language uses abbreviation called menmonics.it is a bit easier to write computer programs in assembly language as compared to machine language but still requires skill and experienci.A program called assembler is used to convert an assembly language into machine language.


Are machine language and assembly language the same?

No, they are not the same. Assembly language uses mnemonic words to REPRESENT machine language; to be able to actually run it, a special program - a so-called assembler - then needs to convert it into machine language.


What is the program to convert Assembly level language to Higher level language?

There is no such program. Low level languages cannot be converted to high level languages. It's one-way only.


How do you convert binary to hexadecimal using assembly language?

In order to convert binary to hexadecimal using assembly language, the programmer must possess an understanding on boolean algebra or binary system in other words. A compiler is also needed to complete the program.


Which program translate assembly language into machine language?

Assembly langue is translated into machine language by an assembler.


A program for assembly language for traffic light control?

an assembly language program of traffic light


What is assembly program?

An assembly program is a machine-dependent program written in a low-level symbolic code known as assembly language.


Reserved word in assembly language program?

use of reserved word in assembly language


Example of Password program code in assembly language?

How to write the program un Assembly language to set a password for personal computers?


Assembly language program for string concatenation using 8086 microprocessor?

write program to concatenating two sting in 8086 assembly language