WAIT1: MOV CX,3314 ?
call waitf
DELAY1: DEC BX ;延迟减1
JNZ WAIT1
MOV AL,AH ;恢复现场
OUT 61H,AL ?
POP DI
POP DX
POP CX
POP BX
POP AX
RET
GENSOUND ENDP
;********************************************
waitf proc near
push ax
waitf1: 这个子程序的作用是什么啊
in al,61h ?
and al,10h ?
cmp al,ah ?
je waitf1 ?
mov ah,al ?
loop waitf1 ?
pop ax ?
ret
waitf endp
|