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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/28/04 20:44
Read: times


 
#84003 - how I used to use binary
Responding to: ???'s previous message
I agree that the binary is harder to read, but it sure is tempting to use it, especially for those control SFRs made up of somewhat unrelated bits.
;;           76543210
mov  T2CON,#001100000b;

and in my young and crazy days I had a stack of these (one premade for every SFR):

;;           TERTETCC
;;           FXCCXR!P
;;           2FLLE2T!
;;            2KKN 2R
;;               2  L
;;                  2
mov  T2CON,#076543210b;


Erik

List of 7 messages in thread
TopicAuthorDate
Timer 2 baud generation problem            01/01/70 00:00      
   avoid binary, it is difficult to read            01/01/70 00:00      
      That was it!            01/01/70 00:00      
         how I used to use binary            01/01/70 00:00      
            Another approach            01/01/70 00:00      
         binary and defines            01/01/70 00:00      
            yet another            01/01/70 00:00      

Back to Subject List