How to compile the following into a DLL?
From: Jim Carlock (spamtrap_at_crayne.org)
Date: 09/25/04
- Previous message: William Hayes: "How does Win32 implement assembly language sections?"
- Next in thread: Jim Carlock: "Re: How to compile the following into a DLL?"
- Reply: Jim Carlock: "Re: How to compile the following into a DLL?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 24 Sep 2004 23:40:31 +0000 (UTC)
The code is as follows... it's supposed to be put into
a dll, and the dll is supposed to be able to be registered,
and useable from VB.
My ultimate goal is to be able to provide some Unsigned
32 and 64 bit numbers to the VB6 IDE. Any suggestions
or hints would be great!
;this adds two long arrays and places in third array
LngAdd proc stdcall uses edx ecx esi edi ebx eax,
nquan:dword,ndest:dword,nwrd1:dword,nwrd2:dword,nbyte:dword
mov ecx,nquan ;# to do
mov ebx,ndest ;dest address
mov edi,nwrd1 ;first array address
mov esi,nwrd2 ;second array address
mov nbyt,00h
next: mov eax,[edi]
add eax,[esi]
jno okay ;jmp if no overflow
mov nbyt,01h ;set flag
okay: mov [ebx],eax
add esi,4
add edi,4
add ebx,4
loop next
mov edi,nbyte
mov al,nbyt
mov [edi],al ;ret flag
ret
lngadd endp
-- Jim Carlock http://www.microcosmotalk.com/ Post replies to the newsgroup.
- Previous message: William Hayes: "How does Win32 implement assembly language sections?"
- Next in thread: Jim Carlock: "Re: How to compile the following into a DLL?"
- Reply: Jim Carlock: "Re: How to compile the following into a DLL?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|