home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / ibm / pc / soundcar / 5350 < prev    next >
Encoding:
Text File  |  1992-12-15  |  2.9 KB  |  66 lines

  1. Newsgroups: comp.sys.ibm.pc.soundcard
  2. Path: sparky!uunet!wupost!gumby!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!ee.ualberta.ca!cowen
  3. From: cowen@ee.ualberta.ca (Adam Cowen)
  4. Subject: asm routine for using GUS with modplay pro
  5. Message-ID: <cowen.724400352@ee.ualberta.ca>
  6. Keywords: GUS
  7. Sender: news@kakwa.ucs.ualberta.ca
  8. Nntp-Posting-Host: bode.ee.ualberta.ca
  9. Organization: University Of Alberta, Edmonton Canada
  10. Date: Tue, 15 Dec 1992 06:19:12 GMT
  11. Lines: 53
  12.  
  13. Hi there, I just picked up the Gravis UltraSound Card!
  14.  I was wondering if anyone had figured out the assembler code for the
  15. user defined card option in ModPlay 2.19. If someone has done this then I
  16. would be very grateful if they would email me the asm routine.
  17.  
  18. I have included below an excerpt from the modplay.cfg file.
  19.  
  20. ------------------------------modplay.cfg-------------------------------------
  21. #########################              Config file parsing routine written by
  22. #- Modplay Config file -#              Paul Sutton (P.C.Sutton@bradford.ac.uk)
  23. #########################
  24.  
  25. [stuff deleted]
  26.  
  27. ##############################################################################
  28. #
  29. #    Make your own assembler code for driving your own hardware
  30. #
  31. #    A name for the defined output device - maximum 21 characters - no spaces
  32. #    allowed :-(  [defining a name here enables the asm code given later]
  33. #
  34.  
  35. #asm-name Pro-Gold-Whatsit+
  36.  
  37. #
  38. #    Actual machine code for stereo playback to the output device.   Samples
  39. #    are given in signed format in AL (left) and AH (right).  First convert
  40. #    to unsigned format before outputing (something like  SUB AL,80, SUB AH,80)
  41. #    You can use registers  AX  DX  BX  only and any relative jumps you
  42. #    might need.  All numbers must be in hexidecimal and you have a maximum
  43. #    of forty bytes. (Dont forget to remove the #'s!)
  44.  
  45. #asm ba 01 03         # mov dx,0300
  46. #asm 2c 80            # sub al,080 - convert to signed
  47. #asm ee               # out dx,al
  48. #asm ba 2f 02         # mov dx,022f
  49. #asm 88 e0            # mov al,ah
  50. #asm 2c 80            # sub al,080 - convert to signed
  51. #asm ee               # out dx,al
  52.  
  53.  
  54.  
  55. +-----------------------------+-----------------------------------------------+
  56. | Adam Cowen                  | "The optimist proclaims that we live in the   |
  57. | Co-op Computer Engineering  |    best of all possible worlds, and the       |
  58. | University of Alberta       |     pessimist fears that this is true."       |
  59. | email: cowen@ee.ualberta.ca |          -James Branch Cabell                 |
  60. +-----------------------------+-----------------------------------------------+
  61. -- 
  62. +-----------------------------+-----------------------------------------------+
  63. | Adam Cowen                  | "The optimist proclaims that we live in the   |
  64. | Co-op Computer Engineering  |    best of all possible worlds, and the       |
  65. | University of Alberta       |     pessimist fears that this is true."       |
  66.