home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / apple2 / 27550 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.2 KB

  1. Path: sparky!uunet!olivea!hal.com!darkstar.UCSC.EDU!cats.ucsc.edu!chonky
  2. From: chonky@cats.ucsc.edu (J. R. `Bob' Matthew)
  3. Newsgroups: comp.sys.apple2
  4. Subject: IRQ/video counter problem
  5. Message-ID: <1k2endINNjck@darkstar.UCSC.EDU>
  6. Date: 26 Jan 93 04:29:33 GMT
  7. Organization: University of California, Santa Cruz
  8. Lines: 29
  9. NNTP-Posting-Host: am.ucsc.edu
  10.  
  11.  
  12. cal info request:
  13.  
  14. Is there any known problem with leaving irqs enabled while
  15. accessing the vertical or horizontal video counters ($e0/c02e,c02f)?
  16.  
  17. I have written a custom irq handler (patching e1/0010... yes, bad
  18. practice, please no gs/os comapability flames) in order to play music
  19. with a program that uses stack-based animation. Well, the animation
  20. works fine, but problems arise when I try to synch it. This works:
  21.  
  22. (irqs are enabled)
  23. ]lp ldal $e0c019
  24.     bmi ]lp
  25.  
  26. This doesn't work (it crashes after getting to the irq handler, which 
  27. messes with various softswitches, but doesn't touch video counters):
  28.  
  29. ]lp ldal $e0c02e
  30.     cmp #$d8 (example)
  31.     bne ]lp
  32.  
  33. So, does anyone know if accessing the video counters temporarily changes
  34. something internal that could muck up the way irqs function?
  35.  
  36. Thanks for any response,
  37.  
  38. -arekusu
  39. ace@deeptht.armory.com
  40.