Jump to content
Sign in to follow this  
Fletch

Reading multiple serial ports in GFA Basic 3.5

Recommended Posts

Is there a way to read data from the other serial ports on a TT in GFA Basic 3.5? I have used the inp(1) command to read from the main serial port, but am not sure how to read from the others.

 

Any suggestions?

 

-Pete

Share this post


Link to post
Share on other sites

Hi,

 

Serial ports were never my strong point but I had a quick look through the compendium and came across this: http://cd.textfiles.com/ataricompendium/BOOK/HTML/CHAP4.HTM

 

BIOS input and output calls to device #1 and XBIOS calls which configure the serial port always refer to the currently 'mapped' device as set with Bconmap(). The Modem CPX allows a user to map any installed device as the default.

Then it gives a table of serial port numbers depending on the machine. If I read this correctly then you can use bconmap (xbios 44) to map the serial port you like to device 1 and then use inp(1) to read data off the port.

 

Not sure that this will do the trick but I think it's a good starting point :). Let us know how you get on.

  • Like 1

Share this post


Link to post
Share on other sites

Hi,

 

Serial ports were never my strong point but I had a quick look through the compendium and came across this: http://cd.textfiles.com/ataricompendium/BOOK/HTML/CHAP4.HTM

 

 

Then it gives a table of serial port numbers depending on the machine. If I read this correctly then you can use bconmap (xbios 44) to map the serial port you like to device 1 and then use inp(1) to read data off the port.

 

Not sure that this will do the trick but I think it's a good starting point :). Let us know how you get on.

 

Thanks for the tip! I'll give that a go.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...