i write this program , but it's not my pourpose.
this program show only square in scerrn and when u click on , the program is finished.
but i explain my pourpose at above link.
and i want admin dont lock my question.
.model small .stack 256h .386 .code main proc far mov ah,00h mov al,12h int 10h ;GoTo 640*480 mov ax,00h int 33h ;initialize mouse mov ax,01h int 33h ;Show mouse mov ax,0fh mov bx,64 mov cx,320 mov dx,256 push dx push cx push bx push ax call bar Continue: mov ax,03h int 33h ;Locate Pointer ym,dx|xm,cx|button,bx cmp bx,01h ;Left Key pressed jne Continue shr dx,6 shr cx,6 ;devide to 64 cmp cx,5 jne Continue cmp dx,4 jne Continue mov ax,4c00h int 21h main endp bar proc push bp mov bp,sp push ax push bx push cx push dx pushf mov cx,0 l4: cmp cx,[bp+6] jz l1 mov dx,0 l3: cmp dx,[bp+6] jz l2 push cx push dx add cx,[bp+8] add dx,[bp+10] mov ax,[bp+4] push dx push cx push ax call put_pixel pop dx pop cx inc dx jmp l3 l2: inc cx jmp l4 l1: popf pop dx pop cx pop bx pop ax pop bp ret 8 bar endp put_pixel proc push bp mov bp,sp push ax push bx push cx push dx pushf mov bh,0 mov ax,[bp+4] mov cx,[bp+6] mov dx,[bp+8] mov ah,0ch int 10h popf pop dx pop cx pop bx pop ax pop bp ret 6 put_pixel endp end main

New Topic/Question
This topic is locked



MultiQuote






|