Quantcast
Channel: x86 Assembly - Programmers Heaven
Viewing all articles
Browse latest Browse all 152

number convertion program

$
0
0
Hi there! Can anyone send me an assembly program that converts the numeric input in decimal to hexadecimal, octal and binary. Input ranges from 0 to 65535. If the input is not within the range, the program should issue an "out of range" error message. The program should be able to filter the following invalid inputs:
1. null input
2. negative number input
3. real number input
4. negative real number input
5. alphabet input
The program should also include a "Do you want to try again?" loop.

***sample run

Enter a number: 15
Hexadecimal: 000F
Octal: 17
Binary: 0000 0000 0000 1111

Do you want to try again(Y/N)? N


thanks!

hoping for your immediate response
Cristine

Viewing all articles
Browse latest Browse all 152

Trending Articles