I have this code:
IDEAL
MODEL small
STACK 100h
DATASEG
CODESEG
PROC PLAY
mov al, 182
out 43h, al
out 42h, al
mov al, ah
out 42h, al
in al, 61h
or al, 00000011b
out 61h, al
mov bx, 15
pauseSound:
mov cx, 65535
pause2:
dec cx
jne pause2
dec bx
jne pauseSound
in al, 61h
and al, 11111100b
out 61h, al
RET
END PLAY
start:
mov ax, 2712
call PLAY
MOV AX, 3834
call PLAY
exit :
mov ax, 4C00h
int 21h
END start
That program needs to play one sound a couple of seconds, and then another sound for a couple of seconds. However I am only hearing the first one and not the second, where is the problem/bug?
Thank you