Calling function from DLL using Call Library Function.
Function source:
extern "C" __declspec(dllexport) long ReadPort(long base, long off)
{
unsigned char c;
long d;
__asm
{
push eax
push dx
push ax
mov eax, base
add eax, off
mov dx, ax
in al, dx
mov c, al
pop ax
pop dx
pop eax
}
d = c;
return d;
}
Using LabVIEW 5.0 and MSVC 6
OS: Win2k