For Asembly (68hc11) This is an assigment to handle in paper.
Write a program to convert a 16-bit integer unsigned number into an ASCII string representing the number in hexadecimal. The number is in register D0 and the string is in put in memory starting at the address in register A0.
How can i separated the bit number into 4 bits to represent the hex number in assembly, is there an instruction for doing this? I have a problem to visualize the logic of the program, also. After separated the four bits how do i make the assembly to convert it to hex?? And to when I get the hex characters I need to compare them to each ascii possible character??
I really dont know where to start.