Truebasic equivalent of Quckbasic functions INP and OUT

Hello

I use the old DOS version 2.1 (1988) of TrueBasic and I need to replicate the port switch management
done by INP and OUT function of Quickbasic 4.5.

thank you

federico

Comments

INP and OUT

Hi,

There is no direct equivalent to INP and OUT in the DOS version of TrueBASIC. However, if you have the DOS library module called COMLIB, then you can achieve the same results.

You will need two channels which you can open with:
CALL COM_OPEN(#5,1,speed,option$) ! port COM1
CALL COM_OPEN(#6,2,speed,option$) ! port COM2

You can receive with
CALL receive(x$)

and you can send with
CALL send(x$)

or ypu can switch ports with
CALL com_switch(port)

You really need to read the manual for more detail.

Regards
Big John