ReC98/th02/snd/detmode.asm

20 lines
328 B
NASM
Raw Normal View History

proc_defconv snd_determine_mode
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
endp_defconv
nop ; word alignment