Nios/hex1

From ASMBits

Write a function that converts a one-digit hexadecimal number (0 to 15) into an ASCII character suitable for printing the number. For 0xa through 0xf, use lower-case ('a' through 'f'). You are guaranteed that the input number will be between 0 and 15.

Expected solution length: Around 5 lines.

Sample Input

0xa

Sample Output

'a'

Write your solution here

Upload a source file...