home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / atari / 8bit / 4266 < prev    next >
Encoding:
Internet Message Format  |  1992-08-18  |  1.9 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!jvnc.net!yale.edu!ira.uka.de!uni-heidelberg!rz.uni-karlsruhe.de!usenet
  2. From: UJ1G@DKAUNI2.BITNET
  3. Newsgroups: comp.sys.atari.8bit
  4. Subject: Re: Star Wars
  5. Message-ID: <1992Aug18.190049.18882@rz.uni-karlsruhe.de>
  6. Date: 18 Aug 92 19:00:49 GMT
  7. Sender: usenet@rz.uni-karlsruhe.de (USENET News System)
  8. Organization: University of Karlsruhe, Germany
  9. Lines: 35
  10.  
  11.  
  12. Bill Kendrick writes:
  13. > {..}                                 How is this handled!?  How much disk
  14. > i/o speed is lost when this stuff is done???
  15. > (cant wait to try something like this myself! ;) )
  16.  
  17. The principle of playing music during disk i/o isn't very tricky.
  18. The sound is produced during the immediate VBI .
  19. There are two kinds of VBIs. One part is always executing every
  20. 1/60th of a second on NTSC computers. The other part, the deferred
  21. VBI, is only executing when there's enough time for it.
  22. During disk i/o only the first part of the VBI is executed, since
  23. there's no spare time left.
  24.  
  25. The only problem in programming a sound routine for the immediate
  26. VBI is TIME. Your routine can't be too long or it will
  27. screw up the whole system. This is epecially true with NTSC, leaving
  28. more time on PAL systems.
  29.  
  30. To set up this VBI as usual jump through the SETVBV routine after
  31. storing the address of your routine in the appropriate registers and
  32. the code for the immediate VBI in the accumulator.
  33. The code could be $7 or $6, here I need help from someone who has either
  34. a better memory or has his hardware manual handy.
  35.  
  36. Just try it out. I'm sure you'll find it out somehow.
  37.  
  38. Marek
  39.                                         \         ATARI 8-BIT
  40. ----------------------------------------| \           the
  41. Internet: uj1g@ibm3090.rz.uni-karlsruhe.de| \        best
  42. BITNET:   uj1g@dkauni2                    |   /    equipment
  43. CFN:      bn137                           | /
  44. ----------------------------------------| /    for the 21st century
  45.                                         /
  46.