I am working on a calculator that can add, subtract, multiply and divide in any base between 2 and 16 with MSP430g2553 in assembly language. I already can do this in any base but the problem is that the results of any of the operations is in hexadecimal in the registers. I need to display the result in the base entered by the user in the LCD. To display in the LCD I need to send the ascii codes of each digit to the LCD. For example I am adding 77(base 8) + 4(base 8) = 103 (base 8), but my result is stored as 43(hex) because 103(base 8) is 43(hex). Can I do something with that hex result in the display it in the desired base in the LCD?
--------------------------------------- Posted through