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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/26/04 01:22
Read: times


 
#67432 - RE: hex to decimal assembly
Responding to: ???'s previous message
Oh...
Ok i got ya.
Just to let you know Ben Weech, ascii is just a number code, not much you can do about it.

I think the most simple you can get is a loop, each one for 100s digit, 10s digit, and then use the remainder for the 1s digit.

Afterward, just add the number 30 to each stored digit to turn it into ascii format. Of course, you will require 3 bytes in order to do this, one for the Hundreds, tens, and ones.

Here is a mini chart for the numbers:
number -- ascii code (decimal)

0 -- 30
1 -- 31
2 -- 32
3 -- 33
4 -- 34
5 -- 35
6 -- 36
7 -- 37
8 -- 38
9 -- 39

Unless you are talking about a number in ascii format that is in hex, convert it into "computer format", and then convert it into ascii format in decimal?

List of 18 messages in thread
TopicAuthorDate
hex to decimal assembly            01/01/70 00:00      
   RE: hex to decimal assembly            01/01/70 00:00      
      RE: hex to decimal assembly            01/01/70 00:00      
         RE: hex to decimal assembly            01/01/70 00:00      
            RE: hex to decimal assembly            01/01/70 00:00      
               RE: hex to decimal assembly            01/01/70 00:00      
                  RE: hex to decimal assembly            01/01/70 00:00      
                     RE: hex to decimal assembly            01/01/70 00:00      
                        RE: hex to decimal assembly            01/01/70 00:00      
                           RE: hex to decimal assembly            01/01/70 00:00      
                              RE: hex to decimal assembly            01/01/70 00:00      
                           Back to basics            01/01/70 00:00      
                        RE: hex to decimal assembly            01/01/70 00:00      
   RE: hex to decimal assembly            01/01/70 00:00      
   RE: hex to decimal assembly            01/01/70 00:00      
      Forgot a few stuff, continuing on...            01/01/70 00:00      
         Number representations            01/01/70 00:00      
      Erm... Another correction to myself            01/01/70 00:00      

Back to Subject List