home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / apple2 / 27586 < prev    next >
Encoding:
Text File  |  1993-01-27  |  1.2 KB  |  30 lines

  1. Newsgroups: comp.sys.apple2
  2. Path: sparky!uunet!newsstand.cit.cornell.edu!piccolo.cit.cornell.edu!crux2!jmk3
  3. From: jmk3@crux2.cit.cornell.edu (Jay Krell)
  4. Subject: Re: IRQ/video counter problem
  5. Message-ID: <jmk3.728077383@crux1.cit.cornell.edu>
  6. Sender: news@piccolo.cit.cornell.edu (USENET News System)
  7. Nntp-Posting-Host: crux2.cit.cornell.edu
  8. Organization: Cornell Information Technologies
  9. References: <1k2endINNjck@darkstar.UCSC.EDU>
  10. Date: 26 Jan 93 19:43:03 GMT
  11. Lines: 17
  12.  
  13. I don't know what is wrong with your program but something to
  14. definitely watch out for when using the video counters is that
  15. (the) fact that you might never see certains values.
  16. Heartbeat (VBL) interrupts trigger at line 192. You are not likely
  17. to ever see 192-??? (depends on how many heartbeat tasks and
  18. how long they take.)
  19.  
  20. Interrupts would not mess with the video counters. Be sure to
  21. access them 8-bits at a time (unless you know what the next location
  22. is, it might be safe. The video counters are two neighboring bytes,
  23. aren't they.) And using the video counters would not mess up interrupts.
  24. (I forget which you asked.) Also, be sure that cmp #$xx is only
  25. 8-bit if the accumulator is 8-bits then. That is an easy way
  26. to get a brk instruction in your code.
  27.  
  28.  J
  29.  
  30.