I have placed Phone Line on 2 computer and I want to communicate beetween it. I Think it use Port Com 2 (0x2F8).

mov dx,2f8h
mov al,ffh
out al,dx

I think it goes like this. Right ?
Posted on 2003-08-04 00:43:21 by realvampire
You can't use IN/OUT opcodes from win32.
I recommend u look at the SPAPI service provider api.
You can sure perform Port IO using public libraries, but if u wanna code telco stuff use the api to get started..
Posted on 2003-08-04 03:26:25 by Homer
What about Laplink? can you give me some link ?
Posted on 2003-08-05 03:18:43 by realvampire
laplink uses api calls to communications ports
their are 21 api codes available for comm port calls
then branch out to other methods

good luck
Posted on 2003-08-11 22:01:27 by dhicks586
Hi realvampire
To open a com port, in win32 you open the port just like you open a file.
There is also a structure that you have to initialize.

dcb DCB <> ; The structure
Comx db ("com1"),0 ; com2, LPT1....etc
hComm dw ?
mov dcb.BaudRate,4800
mov dcb.ByteSize,8
mov dcb.Parity,0
mov dcb.StopBits,0

mov hComm,eax ;Get the handle

INVOKE ReadFile,hComm,pMemory,MEMSIZE,ADDR nBits,NULL

Something like that... Good luck

Best Regards
Posted on 2003-08-13 16:17:23 by mistronr1