Fletch Posted January 23, 2018 Share Posted January 23, 2018 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 Quote Link to comment Share on other sites More sharing options...
ggn Posted January 23, 2018 Share Posted January 23, 2018 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. 1 Quote Link to comment Share on other sites More sharing options...
Fletch Posted January 24, 2018 Author Share Posted January 24, 2018 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.