hi, thanks for the answers
I'm studing asm since 4 weeks ago, my first app was with nasm and MinGW, and the syntaxis is very differente to MASM, so I try to learning MASM, and there are many thing that I don't know how it works, like import library and I try to use it better with direccion and values, that's how am working with nasm, sorry.... I will study more about masm
just one last question, I tried to fix the app, and now I don't receive messages with errors, the compile is succesfull, but it doesn't work, I made a service-client in nasm on 32 bits, and I tried to remake the client on 64 bits, but the connection fail...
can somebody tell me, why the connection fails?
here is the code
-EDIT---
extrn LoadLibraryA:PROC
extrn ExitProcess:PROC
extrn GetProcAddress:PROC
.data
wsdll db "ws2_32.dll",0
wsaddr dq ?
WStp db "WSAStartup",0
wtaddr dq ?
wsadata db 400 dup (0)
sock db "socket",0
sockaddr dq ?
conn db "connect",0
conaddr dq ?
sen db "send",0
senaddr dq ?
buf db "hola mundo",0
.code
Start proc
push rbp
mov rbp, rsp
sub rsp, 20h
mov rcx, offset [wsdll]
call LoadLibraryA
mov[wsaddr], rax
mov rdx, offset[WStp]
mov rcx, [wsaddr]
call GetProcAddress
mov[wtaddr], rax
lea rdx, wsadata
mov rcx, 2h
call [wtaddr]
mov rdx, offset[sock]
mov rcx, [wsaddr]
call GetProcAddress
mov[sockaddr], rax
mov r8, 0h
mov rdx, 1h
mov rcx, 2h
call [sockaddr]
mov[sockaddr], rax
mov rdx, offset[conn]
mov rcx, [wsaddr]
call GetProcAddress
mov[conaddr], rax
mov rsi, 16h
mov rdi, 0100007FB9220002h
mov rdx,[sockaddr]
call[conaddr]
mov rdx, offset[sen]
mov rcx, [wsaddr]
call GetProcAddress
mov[senaddr], rax
mov r9, 0h
mov r8, 50h
mov rdx, offset[buf]
mov rcx,[sockaddr]
call[senaddr]
mov rsp, rbp
pop rbp
xor ecx, ecx
call ExitProcess
Start endp
End
thanks and regards