鼠标一按就死机了,郁闷,请教哪里有错误。 sj segment dxx dw ? cxx dw ? sj ends
dz segment para stack dzz dw 1000 dup(?) dz ends dm segment assume cs:dm,ss:dz,ds:sj ks: mov ax,sj mov ds,ax
mov ax,0013h int 10h mov ax,0a000h mov es,ax
mov ah,00h int 33h mov ax,0001h int 33h mov al,20h int 33h
cli mov ax,0ch mov ch,0 mov cl,00001010b mov dx,offset shubiao int 33h sti
ceshi: mov al,33h mov cx,100d mov dx,30d mov bx,3300d call juxing jmp tc shubiao proc near mov bx,480d mov al,55h sbx: mov es:[bx],al inc bx cmp bx,640d jnz sbx ret shubiao endp
juxing proc near mov cxx,cx mov dxx,dx heng1: inc bx mov es:[bx],al dec cx cmp cx,0 jnz heng1 shu1: add bx,320d mov es:[bx],al dec dx cmp dx,0 jnz shu1 mov cx,cxx mov dx,dxx heng2: dec bx mov es:[bx],al dec cx cmp cx,0 jnz heng2 shu2: sub bx,320d mov es:[bx],al dec dx cmp dx,0 jnz shu2 ret juxing endp
tc: mov al,20h out 64h,al in al,60h cmp al,1ch jnz tc tc1: mov ax,4c00h int 21h dm ends end ks