I have a DLL that uses IN and OUT to do directo IO to an ISA card. I understand that IN and OUT work fine with Win 9.X... and everything has. But I want to be able to use this with other version of Windows.

I was introduced to a package called WinIO and another package that accompanies the WinIO.

Is this what I should use?

Is there much involved in including this library and using replacing my current IN and OUT statements?? I think there is only about 6-8.

Thanks for any leads....

Posted on 2001-11-13 11:56:51 by mikef
Well, you definitely need to replace IN and OUT with something else
to be compatible with nt/2k/xp.

WinIO might be it (dunno if that's only for serial/parallel access,
or if it is a generic IO package... never used it.)

Btw, "directo IO to an ISA card" sounds a bit dangerous :). There
might be a safer way to do this. More details, please =).
Posted on 2001-11-13 12:04:24 by f0dder
Thanks for the tip. The WinIO is available at www.internals.com and the ASMio is from Thomas Bleekers site.

The DLL is VERY simple. I just want to be able to use the below routine and others similar in fashion under ME, NT and 2k.

Here is an excerpt from my code that reads info from the card:

mov dx,otbaseadr
in al,dx ;input LSB
mov cl,al ;store LSB in cl
add dx,2
in al,dx ;input MSB
mov bl,al ;store MSB in bl
dec dx
in al,dx ;input middle SB
mov ch,al ;store middle SB in ch

dec dx ;point to the LSB
in al,dx
cmp al,cl
je done1 ;reread if al = 0 or FF
cmp al,0FFh
je read1
cmp al,0
je read1
mov cl,al

done1: mov WORD PTR count1+0,cx
mov al,bl
mov WORD PTR count1+2,ax
Posted on 2001-11-13 12:12:25 by mikef
Also, my terminology stating: "Direct IO to an ISA card", may be incorrect. You can look at the code and let me know.

I am new to this, but have been successful in converting the DLL from 16bit to 32bit and it works great under 9.x

thanks again for your expertise.

Posted on 2001-11-13 14:40:17 by mikef