How do I convert HEX to ASCII code in assembler?
Submitted By: Craig Steiner FAQ Last Modified: 07/10/06
- This code snippet contributed by J. Guy,who found it in an 8080 programming guide, where it is attributed to D.R.Allison. This seems to be the minimal code possible.
When converting hex nibble to ascii:
; make sure A is 0-15 here ADD A,#90H DA A ADDC A,#40H DA A ; A = INTTOHEX(A), (0<=A<=15)
Add Information to this FAQ: If you have additional information or alternative solutions to this question, you may add to this FAQ by clicking here.