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
/
INT10.INC
< prev
next >
Wrap
Text File
|
1992-09-18
|
2KB
|
134 lines
; /*\
; |*| int21.inc - intercept certain calls and output sound
; |*|
; |*|
; |*|
; |*|
; |*|
; \*/
intr10 proc far
sti
pushf
inc word ptr cs:id10.cnt
test word ptr cs:id10.vold[2], 0FFFFh
jnz @F
popf
iret
@@: cmp ah, 0Eh ; console i/o
jnz @F ; no, skip to old routine
cmp al, 7 ; output a bell?
jnz doold10 ; no, skip to old routine
jmp short doour10
@@: jmp short doold10
doour10:
push ax
push dx
push si
mov al, 1
mov si, 8016h
int 94h
pop si
pop dx
pop ax
popf
iret
doold10:
popf
jmp dword ptr cs:id10.vold
iret
intr10 endp
intr29 proc far
sti
pushf
inc word ptr cs:id29.cnt
test word ptr cs:id29.vold[2], 0FFFFh
jnz @F
popf
iret
@@: cmp al, 7 ; output a bell?
jnz @F ; no, next check
jmp short doour29 ; got a match, output a sound
@@: jmp short doold29
doour29:
push ax
push dx
push si
mov al, 1
mov si, 8016h
int 94h
pop si
pop dx
pop ax
popf
iret
doold29:
popf
jmp dword ptr cs:id29.vold
iret
intr29 endp
if DODISKIO
; /*\
; |*| intr24 - critical error handler
; |*|
; |*|
; |*|
; |*|
; |*|
intr24 proc far
sti
pushf
inc word ptr cs:id24.cnt
test word ptr cs:id24.vold[2], 0FFFFh
jnz @F
popf
iret
@@:
doour24:
push ax
push si
mov al, 1
mov si, 8016h
int 94h
pop si
pop ax
doold24:
popf
jmp dword ptr cs:id24.vold
iret
intr24 endp
init24 proc near
mov cs:[12h][0], offset intr24 ; set intr24 into our PSP
mov cs:[12h][2], cs
ret
init24 endp
endif