1 Replies - 360 Views - Last Post: 22 June 2012 - 08:53 PM Rate Topic: -----

#1 gnostic  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 22-June 12

appear and disapear characters by click and reclick mouse

Posted 22 June 2012 - 08:50 PM

i explain my pourpose here My link but admin locked it.

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




Is This A Good Question/Topic? 0
  • +

Replies To: appear and disapear characters by click and reclick mouse

#2 GunnerInc  Icon User is offline

  • "Hurry up and wait"
  • member icon




Reputation: 858
  • View blog
  • Posts: 2,277
  • Joined: 28-March 11

Re: appear and disapear characters by click and reclick mouse

Posted 22 June 2012 - 08:53 PM

And you just created a 2nd account which is against our TOS
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1