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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/06/09 23:29
Modified:
  02/06/09 23:30

Read: times


 
#162158 - not exactly
Responding to: ???'s previous message
short hexval = 12345; // deciml 12345 or 3039 hex makes no difference
short temp;
U8 char1;
U8 char2;
U8 char3;
U8 char4;
U8 char5;
char 1 = hexval /10000; // 1
char1 += '0';
temp = hexval %10000; // 2345
char2 = temp /1000; // 2
.....

modify this to aloop and you have it

Erik

List of 12 messages in thread
TopicAuthorDate
Looking for a fast elegant solution to an SAA1064            01/01/70 00:00      
   several ways            01/01/70 00:00      
   Simple Table Lookup            01/01/70 00:00      
      Constructing the table symbolically            01/01/70 00:00      
      That looks like it will do the trick            01/01/70 00:00      
      Ok I'm here now.......            01/01/70 00:00      
         first convert to decimal, then to ASCII            01/01/70 00:00      
            So...            01/01/70 00:00      
               Keep track of binary/BCD/hex/ASCII            01/01/70 00:00      
                  Final answer and it works            01/01/70 00:00      
                     But '0' - 0x30 is zero :)            01/01/70 00:00      
               not exactly            01/01/70 00:00      

Back to Subject List