ReC98/th02/hardware/snd_determine_mode.asm

21 lines
364 B
NASM
Raw Normal View History

; void __cdecl snd_determine_mode()
snd_determine_mode proc
mov ah, PMD_GET_DRIVER_VERSION
int 60h
xor bx, bx
cmp al, -1
jz short @@set_to_MIDI_activity
inc bx
mov snd_fm_possible, 1
jmp short @@set_and_ret
@@set_to_MIDI_activity:
mov bl, snd_midi_active
@@set_and_ret:
mov snd_active, bl
mov ax, bx
ret
snd_determine_mode endp
nop ; word alignment