home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.ibm.pc.soundcard
- Path: sparky!uunet!wupost!gumby!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!ee.ualberta.ca!cowen
- From: cowen@ee.ualberta.ca (Adam Cowen)
- Subject: asm routine for using GUS with modplay pro
- Message-ID: <cowen.724400352@ee.ualberta.ca>
- Keywords: GUS
- Sender: news@kakwa.ucs.ualberta.ca
- Nntp-Posting-Host: bode.ee.ualberta.ca
- Organization: University Of Alberta, Edmonton Canada
- Date: Tue, 15 Dec 1992 06:19:12 GMT
- Lines: 53
-
- Hi there, I just picked up the Gravis UltraSound Card!
- I was wondering if anyone had figured out the assembler code for the
- user defined card option in ModPlay 2.19. If someone has done this then I
- would be very grateful if they would email me the asm routine.
-
- I have included below an excerpt from the modplay.cfg file.
-
- ------------------------------modplay.cfg-------------------------------------
- ######################### Config file parsing routine written by
- #- Modplay Config file -# Paul Sutton (P.C.Sutton@bradford.ac.uk)
- #########################
-
- [stuff deleted]
-
- ##############################################################################
- #
- # Make your own assembler code for driving your own hardware
- #
- # A name for the defined output device - maximum 21 characters - no spaces
- # allowed :-( [defining a name here enables the asm code given later]
- #
-
- #asm-name Pro-Gold-Whatsit+
-
- #
- # Actual machine code for stereo playback to the output device. Samples
- # are given in signed format in AL (left) and AH (right). First convert
- # to unsigned format before outputing (something like SUB AL,80, SUB AH,80)
- # You can use registers AX DX BX only and any relative jumps you
- # might need. All numbers must be in hexidecimal and you have a maximum
- # of forty bytes. (Dont forget to remove the #'s!)
-
- #asm ba 01 03 # mov dx,0300
- #asm 2c 80 # sub al,080 - convert to signed
- #asm ee # out dx,al
- #asm ba 2f 02 # mov dx,022f
- #asm 88 e0 # mov al,ah
- #asm 2c 80 # sub al,080 - convert to signed
- #asm ee # out dx,al
-
-
-
- +-----------------------------+-----------------------------------------------+
- | Adam Cowen | "The optimist proclaims that we live in the |
- | Co-op Computer Engineering | best of all possible worlds, and the |
- | University of Alberta | pessimist fears that this is true." |
- | email: cowen@ee.ualberta.ca | -James Branch Cabell |
- +-----------------------------+-----------------------------------------------+
- --
- +-----------------------------+-----------------------------------------------+
- | Adam Cowen | "The optimist proclaims that we live in the |
- | Co-op Computer Engineering | best of all possible worlds, and the |
- | University of Alberta | pessimist fears that this is true." |
-