ReC98/th04/snd/pmd_res.asm

22 lines
411 B
NASM

public _snd_pmd_resident
_snd_pmd_resident proc
xor ax, ax
mov _snd_interrupt_if_midi, 60h
mov _snd_midi_possible, al
mov _snd_bgm_mode, al
mov _snd_se_mode, al
mov es, ax
assume es:nothing
les bx, dword ptr es:[60h * 4]
cmp byte ptr es:[bx+2], 'P'
jnz short @@ret
cmp byte ptr es:[bx+3], 'M'
jnz short @@ret
cmp byte ptr es:[bx+4], 'D'
jnz short @@ret
inc ax
@@ret:
ret
_snd_pmd_resident endp