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