标题:[讨论]请教鼠标中断程序的设置,int33h。
只看楼主
hwbnet
Rank: 1
等 级:新手上路
威 望:2
帖 子:355
专家分:0
注 册:2004-12-9
 问题点数:0 回复次数:0 
[讨论]请教鼠标中断程序的设置,int33h。

鼠标一按就死机了,郁闷,请教哪里有错误。 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

搜索更多相关主题的帖子: mov 鼠标 中断程序 int segment 
2005-05-27 21:14



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-19493-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.331765 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved