Jump to content
IGNORED

Reading multiple serial ports in GFA Basic 3.5


Fletch

Recommended Posts

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
Link to comment
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.

Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

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...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...