Pagalba kontroliuoti pele naudojant int33h į ASM

D

DoraSzasz

Guest
Sveiki, visi!

Esu įdomi kontroliuoti pele montuojant kalba, naudojantis INT 33h.
Noriu perkelti pelės skirtingose vietose ir parodyti koordinates pele ir kitų įdomių dalykų.

Can anyone help me?

Ačiū!

 
Jeigu Jūsų prašymas yra 16 bitų realaus režimo, turite naudoti atitinkamas Windows API funkcijas.

 
Taip, aš žinau, kad, tačiau aš nežinau, kaip programa ji ...

PUSLAPIS 60.132
ANTRAŠTINĖ DALIS KONTROLĖS PROGRAMA MOUSE
;
Komentaras * Programos 1 *
;
;------------------------------------------------- --
STIVA segmentus PARA STACK "STACK"
DW 256 DUP (?)
STIVA PABAIGA
;------------------------------------------------- --
;
;------------------------------------------------- --
DUOMENŲ segmentus PARA PUBLIC 'DATA'
msg BP "Program pentru controlul mouseului"
BP "Tastati ESRK pentru oprire", 0dh, 0ah, '$'
DUOMENŲ PABAIGA
;------------------------------------------------- ---
;
;------------------------------------------------- ---
; Sectiune KODAS
;------------------------------------------------- ---
;
Segment kodą PARA PUBLIC 'CODE'
PRISIIMTI CS: CODE, DS: DUOMENŲ, SS: STIVA, ES: Nieko

TITULINIS PROC FAR
mov ax, 0001h
INT 33h
Ret

mov ax, 0003h
INT 33h
mov ax, dx
Ret

MousePointerOn PROC
mov ax, 0001h
INT 33h
Ret
MousePointerOn ENDPMousePointerOff PROC
mov ax, 0002h
INT 33h
Ret
MousePointerOff ENDPMouseGetXCoord PROC
mov ax, 0003h
INT 33h
mov ax, dx
Ret
MouseGetXCoord ENDP

MouseGetYCoord PROC
mov ax, 0003h
INT 33h
mov ax, cx
Ret
MouseGetYCoord ENDPMouseReadButtons PROC
mov ax, 0003h
INT 33h
mov ax, bx
Ret
MouseReadButtons ENDP

KODAS PABAIGA
PRADŽIA PABAIGA

Tai What I've Done, bet ji neveikia ....

 

Welcome to EDABoard.com

Sponsor

Back
Top