home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / apple2 / 19518 < prev    next >
Encoding:
Internet Message Format  |  1992-08-27  |  2.0 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!ames!data.nas.nasa.gov!taligent!apple!dlyons
  2. From: dlyons@Apple.COM (David A Lyons)
  3. Newsgroups: comp.sys.apple2
  4. Subject: Re: When is the tick counter incremented?
  5. Message-ID: <71718@apple.Apple.COM>
  6. Date: 27 Aug 92 12:58:30 GMT
  7. References: <1992Aug26.185150.22795@julian.uwo.ca>
  8. Organization: Apple Computer Inc., Cupertino, CA
  9. Lines: 37
  10.  
  11. In article <1992Aug26.185150.22795@julian.uwo.ca> hackett@gaul.csd.uwo.ca (Mike Hackett) writes:
  12. >[...] after
  13. >reading TN #39 several times, I'm not entirely sure exactly when the tick
  14. >counter is incremented.
  15.  
  16. From page 14-22 of Toolbox Reference 1, "GetTick":
  17.  
  18.    Returns the current value of the tick counter.  The value will be
  19.    incremented only if the Heartbeat Interrupt handler is installed
  20.    (always true if the Event Manager is active) and VBL interrupts are
  21.    enabled. [...]
  22.  
  23. From this you can (correctly) conclude that the same routine that dispatches
  24. control to Heartbeat tasks increments the tick count.
  25.  
  26. >The note seems to suggest that the vertical
  27. >blanking interrupt occurs at line 192.  (Actually, it often refers to the
  28. >vertical blanking actually occurring at 192, but this is not true.) [...]
  29.  
  30. You have the July 1989 versions of GS TN #39 and #40, right?  Near the end,
  31. 39 says outright, "Note that the VBL interrupts always trigger at scan line
  32. 192, even in the Super Hi-Res display mode."
  33.  
  34. Once you forgive both notes for not distinguishing between *actual* vertical
  35. blanking and the point where the VBL interrupt triggers & the $C019 switch
  36. twiddles, I believe they are accurate.
  37.  
  38. (I thought so in April 1989, too, when I pulled my first all-nighter in DTS
  39. playing with various little mini-assembler programs to do strange things to
  40. the border color based on $C02E and $C019 to answer a developer's question
  41. and then revise the notes.)
  42. -- 
  43. David A. Lyons, Apple Computer, Inc.      |   DAL Systems
  44. Apple II System Software Engineer         |   P.O. Box 875
  45. Internet:dlyons@apple.com                 |   Cupertino, CA 95015-0875
  46.  
  47. My opinions are my own, not Apple's.
  48.