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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/23/11 11:58
Read: times


 
#181990 - the problem with cycle counting ...
Responding to: ???'s previous message
the problem with cycle counting (which can only be done in assembler) is that not only the thing you want to delay but EVERYTHING comes to a screeching halt.

main
init main
while (1)
func1
func2 which contains a delay
func3

that delay will stop func1 and func3 as well

thus a delay should be
timer based

and used like this
if !(delay done) return;

Erik

List of 17 messages in thread
TopicAuthorDate
How to Delay            01/01/70 00:00      
   Counting cycles            01/01/70 00:00      
      But *not* in a HLL            01/01/70 00:00      
         the problem with cycle counting ...            01/01/70 00:00      
      ok            01/01/70 00:00      
         ???            01/01/70 00:00      
            OK            01/01/70 00:00      
               So what do you do?            01/01/70 00:00      
               sounds crazy            01/01/70 00:00      
               again            01/01/70 00:00      
   Why *no*t using timers?            01/01/70 00:00      
      Why no timers....            01/01/70 00:00      
         "Software" Timers            01/01/70 00:00      
      for another delay            01/01/70 00:00      
         Bad answer            01/01/70 00:00      
         Why ignore replies?            01/01/70 00:00      
            Output-only mode            01/01/70 00:00      

Back to Subject List