Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Thread Closed: Question answered in tutorial/FAQs

???
10/02/03 19:41
Read: times


 
#55963 - hex to dec conversion
I need to convert a hexadecimal number (2 nibbles) into a decimal number (max. 3 digits)
for example:
9Dh --> 157d
when 9Dh is placed in R0, after executing a certain routine, the number 1 (hundreds) should be in R1, the number 5 (tens) and 7 (units) should be in R2.
I wondered if I could use the DA instruction, but i'm told that this instruction can only be used after an ADD instruction...
Can someone help me out,

thanks

List of 3 messages in thread
TopicAuthorDate
hex to dec conversion            01/01/70 00:00      
   RE: hex to dec conversion            01/01/70 00:00      
   RE: hex to dec conversion            01/01/70 00:00      

Back to Subject List