初始化频率:
cli
mov al, 0B6h
out 43h, al
out 0edh, al
mov al, 0Bh
out 42h, al
out 0edh, al
mov al, 2
out 42h, al
out 0edh, al
sti
打开beeper
in al, 61h
jmp $+2
or al, 3
out 61h, al
关闭beeper
in al, 61h
and al, 0fch ;;;Disable speaker & timer gate
or al,1
out 61h, al ;;;Disable sound