home *** CD-ROM | disk | FTP | other *** search
/ Audio 4.94 - Over 11,000 Files / audio-11000.iso / msdos / sndbords / proaudio / pcmtlsrc / pcmtlsrc.arj / PCM.ARJ / _I94F03.INC < prev    next >
Text File  |  1992-07-29  |  1KB  |  64 lines

  1. ;$Author:   BCRANE  $
  2. ;$Date:   29 Jul 1992 16:57:10  $
  3. ;$Header:   W:/sccs/sdkapp/_i94f03.inv   1.0   29 Jul 1992 16:57:10   BCRANE  $
  4. ;$Log:   W:/sccs/sdkapp/_i94f03.inv  $
  5. ;
  6. ;   Rev 1.0   29 Jul 1992 16:57:10   BCRANE
  7. ;Initial revision.
  8. ;$Logfile:   W:/sccs/sdkapp/_i94f03.inv  $
  9. ;$Modtimes$
  10. ;$Revision:   1.0  $
  11. ;$Workfile:   _i94f03.inc  $ 
  12.  
  13. ;; functions - all int 94h functions use the following:
  14. ;;    es:bx points to parameters
  15. ;;    si= function # * 2
  16. ;;    ds points to cs
  17. ;;    ax, dx may return parameters
  18. ;;     bx, cx, si, di, es, ds are trashable
  19. ;;    flags are undefined
  20.  
  21.     if VERBOSE
  22.     align 256
  23.     db '_i94f03.inc: copyright Media Vision, Inc., 1992', 00h
  24.     endif
  25.  
  26. ;; i94f03(char far *dmabuf, int size, int divs) - initialize using DMABuffer
  27.  
  28. curdmaoff dw 0
  29. curdmaseg dw 0
  30. curdmasize dw 0
  31. curdmadivs dw 0
  32.  
  33. _i94f03 proc near
  34.  
  35.     mov ax, es:[bx][6]
  36.     mov curdmadivs, ax
  37.     push ax
  38.  
  39.     mov ax, es:[bx][4]
  40.     mov curdmasize, ax
  41.     push ax
  42.  
  43.     mov ax, es:[bx][2]
  44.     mov curdmaseg, ax
  45.     push ax
  46.  
  47.     mov ax, es:[bx][0]
  48.     mov curdmaoff, ax
  49.     push ax
  50.  
  51.     call DMABuffer
  52.     add sp, 8
  53.     or ax, dx
  54.     jnz @F
  55.  
  56.     mov curdmadivs, ax
  57.     mov curdmasize, ax
  58.     mov curdmaseg, ax
  59.     mov curdmaoff, ax
  60.  
  61. @@:    ret                    ; nothing
  62. _i94f03 endp 
  63.  
  64.