初学者请各位大侠教一个问题
利用INT 1CH 实现每隔10S使扬声器发一声音(或显示“hello world!”)。data segment
count dw 1
msg db 'hello world!',0dh,0ah,'$'
data ends
code segment
main proc far
assume cs:code,ds:data
start: mov ax,data
mov ds,ax
mov al,1ch
mov ah,35h
int 21h
push bx
push ds
mov dx,offset ring
mov ax,seg ring
mov ds,ax
mov al,1ch
mov ah,25h
int 21h
pop ds
in al,21h
and al,11111110b
out 21h,al
sti
mov di,63000
delay: mov si,63000
delay1:dec si
jnz delay1
dec di
jnz delay
pop dx
pop ds
mov al,1ch
mov ah,25h
int 21h
mov ah,4ch
int 21h
main endp
ring proc near
push ds
push ax
push cx
push dx
mov ax,data
mov ds,ax
sti
dec count
jnz exit
mov dx,offset msg
mov ah,09h
int 21h
mov dx,1000h
in al,61h
and al,0fch
sount: xor al,02
out 61h,al
mov cx,6000h
wait1: loop wait1
dec dx
jnz sount
mov count,182
exit: cli
pop dx
pop cx
pop ax
pop ds
iret
ring endp
code ends
end start
运行结果不符合题目要求 ,那位大侠帮我修改下。