2014-11-24 21:36:57 +00:00
|
|
|
; int __cdecl snd_pmd_resident(void)
|
|
|
|
snd_pmd_resident proc
|
|
|
|
xor ax, ax
|
2015-02-23 10:47:22 +00:00
|
|
|
mov _snd_interrupt_if_midi, 60h
|
|
|
|
mov _snd_midi_possible, al
|
|
|
|
mov _snd_bgm_mode, al
|
|
|
|
mov _snd_se_mode, al
|
2014-11-24 21:36:57 +00:00
|
|
|
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
|