8-bit HEX to ASCII Convertor
17 July 2011
1 min read
32563 views
| This subroutine converts 8 bit Hexadecimal number into its equivalent ASCII value. The number to be converted should be in the Accumulator. The output ASCII number is stored in R0, R1 and R2. R0 contains the MSB i.e. the Hundreds place, R1 contains the Tens Place and R2 contains the LSB i.e. the Units Place. | |||||||||||||||||||||||||||||||||||||||||
| The ASCII code for numbers 0-9 is 48-57 i.e. 30h – 39h | |||||||||||||||||||||||||||||||||||||||||
|
.
