home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / apple2 / 19490 < prev    next >
Encoding:
Text File  |  1992-08-26  |  1.6 KB  |  33 lines

  1. Newsgroups: comp.sys.apple2
  2. Path: sparky!uunet!sun-barr!cs.utexas.edu!torn!newshost.uwo.ca!gaul.csd.uwo.ca!hackett
  3. From: hackett@gaul.csd.uwo.ca (Mike Hackett)
  4. Subject: When is the tick counter incremented?
  5. Organization: Computer Science Dept., Univ. of Western Ontario, London, Canada
  6. Date: Wed, 26 Aug 1992 18:51:50 GMT
  7. Message-ID: <1992Aug26.185150.22795@julian.uwo.ca>
  8. Sender: news@julian.uwo.ca (USENET News System)
  9. Nntp-Posting-Host: obelix.gaul.csd.uwo.ca
  10. Lines: 21
  11.  
  12.  
  13. For the subroutine profiler for my debugger (Splat! - coming soon from
  14. Procyon) I use the system tick counter along with the vertical video counter
  15. to get better accuracy - not perfect, but better.  Anyway, even after
  16. reading TN #39 several times, I'm not entirely sure exactly when the tick
  17. counter is incremented.  The note seems to suggest that the vertical
  18. blanking interrupt occurs at line 192.  (Actually, it often refers to the
  19. vertical blanking actually occurring at 192, but this is not true.)
  20. The vertical counter should then be $1C0, I believe.
  21.  
  22. Anyway, this is how I've got my program coded now, and it seems to work
  23. well - I'm not getting any negative times anymore - but I'd like to know
  24. for sure.  Are there any gurus out there who can tell me exactly how this
  25. all works?  Thanks.
  26.  
  27.  
  28. =====================================================================
  29. Mike Hackett                  | "She wouldn't make love,
  30. <hackett@gaul.csd.uwo.ca>     |  but she could make good sandwich"
  31. Honors Computer Science IV    | -Ian Anderson, "Budapest"
  32. University of Western Ontario |                - _Crest of a Knave_
  33.