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
/
_I94F94.INC
< prev
next >
Wrap
Text File
|
1992-08-31
|
1KB
|
59 lines
; /*\ $Author: BCRANE $
; /*\ $Date: 31 Aug 1992 10:03:14 $
; /*\ $Header: X:/sccs/sdkapp/_i94f94.inv 1.0 31 Aug 1992 10:03:14 BCRANE $
; /*\ $Log: X:/sccs/sdkapp/_i94f94.inv $
;
; Rev 1.0 31 Aug 1992 10:03:14 BCRANE
;Initial revision.
; /*\ $Logfile: X:/sccs/sdkapp/_i94f94.inv $
; /*\ $Modtimes$
; /*\ $Revision: 1.0 $
; /*\ $Workfile: _i94f94.inc $
;; shark functions
;; dx:ax can be used to return values
;; si can be trashed
;; no other precautions taken
if VERBOSE
align 256
db '_i94f94.inc: copyright Media Vision, Inc., 1992', 00h
endif
;; i94f94() - fill i94f92buf for specified sound
;; ax returns 0 if successful, -1 if sound number out of range
_i94f94 proc near
mov ax, es:[bx].f92snum ; get requested sound number
cmp ax, MAXHANDLES ; compare to max
jb @F ; okay, continue
xor ax, ax ; error
dec ax ; -1
ret
@@: push cx
push di
push ds
mov si, bx ; si= passed in data area
mov cx, type i94f92buf ; cx= size of structure
mul cl ; ax= offset into structure array
add ax, offset f92buf ; ax= beginning of internal table
mov di, ax ; di= beginning of internal array
xchg si, di ; si= internal, es:di= passed in
mov ax, cs
mov ds, ax ; ds:si= internal
rep movsb ; copy internal to target
pop ds
pop di
pop cx
ret
_i94f94 endp