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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/09/11 08:11
Read: times


 
#183277 - So take up the challenge then
Responding to: ???'s previous message
But if you want to learn, you shouldn't just copy/paste code.

And you shouldn't go for hexadecimal output just because hexadecimal is simpler.

And even more importantly - when something doesn't work, you shouldn't thow away and copy other code. The best way to learn is actually to find out what is wrong, and correct. Finding other copy/paste code will let you grow. It's the search for bugs that is imprinting you with the deeper understanding of the individual instructions. What they do. How they interact. What is important to remember.

The majority of the population is expecting to see numbers in our decimal number system. So it really is meaningful to know exactly how such conversions are done. And for decimal conversion, you don't do the and/or operations suitable for hexadecimal, but instead go for div/mod operations. This because a decimal digit isn't an even numbers of binary bits. While a hexadecimal digit is exactly four binary bits.

List of 17 messages in thread
TopicAuthorDate
need help to display timer count on hyperterminal and LED'S            01/01/70 00:00      
   Attention to Details            01/01/70 00:00      
      divide by 10            01/01/70 00:00      
         Hundredth digit is quotient of division by 100            01/01/70 00:00      
            thanks            01/01/70 00:00      
               Debugged with pen and paper?            01/01/70 00:00      
                  Debugged            01/01/70 00:00      
                     Decimal or hexadecimal?            01/01/70 00:00      
                        decision            01/01/70 00:00      
                           So take up the challenge then            01/01/70 00:00      
                              agreed            01/01/70 00:00      
                        Actually BCD!!            01/01/70 00:00      
   Oh Details Details            01/01/70 00:00      
      update            01/01/70 00:00      
         Issues            01/01/70 00:00      
            better to check before sending            01/01/70 00:00      
               Even Better....            01/01/70 00:00      

Back to Subject List