I am doing a small project to control a Photographic camera to do panoramic pictures (360º), to offer to my son, that is a photography lover.
For that project I need to convert a word (16 bit counter) to a decimal number for later convert it ti ASCII. I only work in assembler (I do not know C, I plan to learn), I know a way how to do it, but I do not know if it is the better way. The way I am thinking is decrement the word and increment a nibble and test for hex A if A clear the nibble and add one to next nibble and so forth till the end. Is there a better and faster way to do it?
Thanks for help.