home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip: Special Sound & MIDI
/
Chip-Special_Sound-und-Midi-auf-dem-PC.bin
/
dostools
/
sbf
/
sbp.asm
< prev
next >
Wrap
Assembly Source File
|
1992-03-07
|
655b
|
44 lines
;
; Reset routine for Soundblaster
;
; NOTE: IO address and IRQ number are set in this file
; DMA channel is assumed to be channel 1
;
.model large,C
locals
public Sb_Init, SbIOaddr, SbIRQ, SbDMAchan, SbType
.data
SbIOaddr dw 220h
SbIRQ dw 7
SbDMAchan dw 1
SbType dw 2
.code
Sb_Init proc
mov al,1
mov dx,SbIOaddr
add dx,6
out dx,al
in al,dx
in al,dx
in al,dx
in al,dx
mov al,0
out dx,al
add dx,4
mov cx,100
@@1:
in al,dx
cmp al,0AAh
je @@2
loop @@1
mov ax,1
ret
@@2:
mov ax,0
ret
Sb_Init endp
end