+ -
当前位置:首页 → 问答吧 → 汇编发声求助

汇编发声求助

时间:2010-11-14

来源:互联网

stack segment
db 100 dup(0)
stack ends
code segment
assume cs:code,ss:stack
begin:
mov bx,6000 ;这6000是频率吧...?
mov cx,1000
mov dx,cx
in al,61h
and al,11111100b
trig:
xor al,2
out 61h,al
mov cx,bx
delay:
loop delay
dec dx
jne trig
mov ah,4ch
int 21h 
code ends
end begin
它不发声,为何呢?
大侠们帮忙指点下,谢谢,小女子叩拜了
by the way,我想实现连续发声,有哪些好方法呢?

作者: placebo_   发布时间: 2010-11-14

这里有发声的实例程序, 你参考一下吧
http://nucstorm.ncksoft.com/asmbook/page45.html

作者: masmaster   发布时间: 2010-11-14

行啊,我看看~

作者: placebo_   发布时间: 2010-11-14