ReC98/th02/hardware/snd_kaja_func.asm

26 lines
320 B
NASM
Raw Normal View History

; int DEFCONV snd_kaja_func(int ax)
snd_kaja_func proc
@@ax = word ptr (cPtrSize + 2)
push bp
mov bp, sp
cmp _snd_active, 0
jz short @@ret
mov ax, [bp+@@ax]
cmp _snd_midi_active, 1
jz short @@midi
int 60h
jmp short @@ret
@@midi:
int 61h
@@ret:
pop bp
if GAME ge 3
ret 2
else
ret
endif
snd_kaja_func endp