About 860,000 results
Open links in new tab
  1. Assembly: How to convert hex input to decimal? - Stack Overflow

    May 28, 2016 · My program should take a hex value, check to see if it is a valid hex character, then display the hex value as a decimal value. If it is a lower case hex character then it needs to be converted to upper case.

  2. Hexadecimal in assembly language - Net-Informations.Com

    Converting Between Hexadecimal and Decimal. To convert a hexadecimal number to decimal, simply multiply each digit by its corresponding power of 16 and add the results together. For example, to convert the hexadecimal number 1010h to decimal, we would do the following:

  3. 8086, hex to decimal program , converting prob - All About …

    Mar 31, 2009 · Using the above write the code to input a hex number of up to a word in size as a subroutine called GetHex in Stdio.asm. The return numerical value should be in DX and the count of the number of digits converted should be in CX. You can use the subroutine Getch to …

  4. GitHub - MRehanMehdi/Number-Converter: number converter

    Ensures valid input formats for binary, octal, and hexadecimal numbers. Detects invalid binary digits. Validates octal inputs (range: 0-7). Checks for valid hexadecimal characters (range: 0-F). The program supports the following conversion operations: Binary Inputs: Detects and rejects invalid binary digits.

  5. [Assembly 8086] Convert Hexadecimal To Decimal - shawonruet

    Write a program that will prompt the user to enter a hex digit character ("0"· ... "9" or "A" ... "F"), display it on the next line in decimal, and ask the user i.i he or she wants to do it again. If the user types "y" or "Y", the ·program repeats; If the user types anything else, the program terminates. If the user enters an illegal

  6. Assembly language hexadecimal to decimal - Programmer All

    Use 8086 assembly, input a hexadecimal number, the program will convert the hexadecimal number into the corresponding decimal number and output. Screenshot of program running: To realize such a program, the idea can be like this: 1.

  7. Converting User Input Hexadecimal to Decimal in Assembly

    I am trying to create an assembly program that takes a user input hexadecimal number no greater than 4 digits and outputs the same number in base 10. This is being done using NASM on a Linux install.

  8. hexadecimal to decimal conversion code in assembly

    Dec 22, 2006 · hexadecimal to decimal conversion assembly You can also count directly in decimal. Then you will need to use de decimal adjust instrucction. It will be faster than the division required to convert from hexadecimal and you can also look at …

  9. Hex to Decimal Conversion - GeeksforGeeks

    Apr 30, 2025 · Hex to Decimal Conversion is a fundamental operation in computer science and digital electronics. The operation requires converting numerals from one number system to another, specifically from the Hexadecimal Number System to the Decimal Number System.As we know, a number system is used to represent and categorize numbers based on their base numbers, which is a fundamental concept in mathematics.

  10. Solved Problem Statement:Given a hexadecimal number n as

    You need to take the inputs through INPR in Assembler, convert the input character into hexadecimal number, convert the hexadecimal number into decimal number, have a loop to get each digit, and check the biggest digit of the number.

Refresh