answersLogoWhite

0


Best Answer
  • LXI H, 4150 ; Point to data
  • LXI B, 0000 ; Initialize hundreds= 0, Tens=0
  • MOV A, M ; Get hex data to A
  • LOOP: SUI 64
  • JC LOOP 1
  • INR B ; hundreds= hundreds+1
  • JMP LOOP
  • LOOP 1: ADI 64 ; if subtracted extra, add it clear carry flag
  • LOOP 2: SUI 0A
  • JC LOOP 3
  • INR C ; Tens=tens+1
  • JMP LOOP 2
  • LOOP 3: ADI 0A ; If subtracted extra, add it again
  • INX H ; A = Units
  • MOV M, B ; store hundreds
  • MOV B, A ; Combine Tens in C &
  • MOV A, C ; Units in A to form a
  • RLC ; Single 8-bit number
  • RLC
  • RLC
  • RLC
  • ADD B
  • INX H
  • MOV M, A ; Store tens & Units
  • HLT
User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

testing...

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the program in 8086 to convert a hexadecimal number to its ASCII code?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the Hexadecimal equivalent of dot?

If you are referring to the ASCII code: The ASCII Code for a dot (.) is 46. The hexadecimal equivalent of this is 2E. You can find this, and all ASCII characters here: http://www.asciitable.com/.


What is the ASCII hexadecimal code for a blank space?

0000


Where programs can one use to convert a picture to ASCII text art?

Glass Giant is an online source which one can use to convert a picture to ASCII text art. The program is free and can be used directly on the website.


What is the ASCII code for letter D?

The ASCII code for the letter D is 68 in decimal, 0x44 in hexadecimal/Unicode.


What is the ASCII code of H?

Capital H has an ASCII Code of 72 in Decimal. In Binary that is 1001000. In Hexadecimal it is 48. In Octal it is 110. For a small h it is Decimal 104, Binary 1101000, Hexadecimal 68 and Octal 150.


How does number code differ from a number system?

Number System enables enumeration & quantitation of physical objects. For e.g. Binary, Octal, Decimal & Hexadecimal Number Systems.Number Code encodesunique characters with a number ineach Number System. For e.g.In ASCII Codecapital A is represented as 41 in hexadecimal, 65 in Decimal, 101 in Octal and 01000001 in Binary number System.


What is the Hexadecimal equivalent of space?

The space character in ASCII is CHR(32), so in HEX, that would be 0x20


Convert string have a nice day to equivalent ascii code include spaces between words in the resultant ascii?

Convert string have a nice day to equivalent ascii code include spaces between words in the resultant ascii?


What is the ascii code in binary and decimal for a period?

In hexadecimal, that would be 0x2E, which is equivalent to 46 in decimal, which in binary is 101110.


How do you convert Denney into binary?

You will need to look up the ASCII numbers for each letter, then convert those number to binary. The word "Denny" in binary is: 0100010001100001011011100110111001111001


What does exclamation mark means in C programming?

In computer programming, the exclamation markcorresponds to ASCII character 33 (21 in hexadecimal).


What is a function used to convert ASCII to integer?

atoi