Hi all boys!!!

I'm new to this forum, and I'm Italian... I'm new so to this fantastic language... And I've some problems... Can u help me?

.MODEL small
.STACK 100h

; stampo
stampa MACRO binary
MOV AL, binary

MOV AH, AL
AND AL, 00Fh
ADD AL, 009h
DAA
ADC AL, 040h
DAA
XCHG AH, AL
SHR AL, 4
ADD AL, 090h
DAA
ADC AL, 040h
DAA
XCHG AH, AL

MOV AH, 09h
INT 21h
ENDM
.CODE

main proc

; Setto la posizione del cursore
MOV DH, 00h
MOV DL, 00h
MOV AH, 02H
INT 10H

; Ricavo le info sulla posizione del cursore
MOV AH, 03h
MOV BH, 00h
INT 10h

; Le stampo a video
stampa DL
stampa DH

; Ritorno a DOS
MOV AH, 4Ch
INT 21h

main  endp
end  main


Comments are in Italian :D

I'm using INT 10h to work with mouse:

First, i set the cursor position with:

http://www.ctyme.com/intr/rb-0087.htm

But it doesn't work... that interrupt works at BIOS level to set a new cursor position...

And then I pick Mouse position

http://www.ctyme.com/intr/rb-0088.htm

The macro stampa is used to convert binary output to ASCII string, but when i try to put them on standard output ( video :D ) directly with the macro, only symbols appears...

Can u help me??

PS: How can i move an value from registry to an variable and from variable to an address??

I know that i need a good guide to asm, can u help me to find one? thanks, thanks all!
Posted on 2005-10-02 10:52:50 by PaTeR_x86