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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/29/07 03:42
Modified:
  06/29/07 03:45

Read: times


 
Msg Score: +1
 +1 Good Answer/Helpful
#141327 - Basic method
Responding to: ???'s previous message

get character
subtract 30h
if carry set - error
if result > 09h, subtract 7h
if result > 0fh - error

translates ascii 0..9 and A..F to the equivalent value

'0'..'9' in ascii is 30h..39h, so subtracting 30h gives 0..9
'A'..'F' in ascii is 41h..45h so subtracting 30h + 7 gives ah..fh




List of 8 messages in thread
TopicAuthorDate
number in ascii to binary            01/01/70 00:00      
   Not sure if this will help but anyways            01/01/70 00:00      
   Basic method            01/01/70 00:00      
      Needs a bit more error checking            01/01/70 00:00      
         Solution            01/01/70 00:00      
         A Different Solution            01/01/70 00:00      
      I agree            01/01/70 00:00      
   thank you            01/01/70 00:00      

Back to Subject List