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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/26/05 21:51
Read: times


 
#102998 - code advice
Responding to: ???'s previous message
I got this far (not very)
MOV TH0,#HIGHVALUE0 ;load high value 
MOV TL0,#LOWVALUE0 ;load low value
And immediately said to myself "of what"

then
AGAIN: TIMER00 HIGH(DELAY_50ms),LOW(DELAY_50ms) ;call macro with high and low value of (-50000)
And said to myself "why delay 50ms"

Comments should reflect what is going on, why things are done, not what instructions are doing. If anyone looking at your code needed to "learn" what the instructions are doing (s)he should not look at the code.

Erik

List of 4 messages in thread
TopicAuthorDate
Improved code advice ?            01/01/70 00:00      
   code advice            01/01/70 00:00      
   I second it            01/01/70 00:00      
      Thirded            01/01/70 00:00      

Back to Subject List