Skip to main content

 "Necrophilia means never having to say...well, anything."

                YOUR SECOND GFA BASIC 3.XX MANUAL
                             - or -
        HOW I LEARNED TO STOP WORRYING AND LOVE GFA-BASIC
                             PART 14
                    CHAPTER THIRTEEN - MODEM
                          by Han Kempen

INPAUX$

 
With  the command INPAUX$ the internal RS232-buffer is read  and
at the same time cleared.  You can find the address of the input-
buffer with XBIOS 14 (Iorec):

     adr.in%=LPEEK(XBIOS(14,0))

The output-buffer can be located with:

     adr.out%=LPEEK(XBIOS(14,0)+14)

INP

 If  you  use INP(1) to read incoming bytes,  you  should  always
check with INP?(1) if the RS232-buffer contains data.

Rsconf (XBIOS 15)

 With  XBIOS 15 (Rsconf) you can change the  RS232-parameters.  A
few baudrates:

     0 - 19200 baud
     1 -  9600 baud
     4 -  2400 baud
     7 -  1200 baud
     9 -   300 baud
    14 -    75 baud

 Use  -1 for parameters you don't want to change.  Due to a  TOS-
bug,  you  can't use 75 baud,  because '14' results in 120  baud.
Also,  the  old  TOS  (pre-Blitter  age)  can't  handle  hardware
handshake with RTS/CTS-signals. Atari has released a bug-fix that
should  enable  any  TOS to  use  RTS/CTS.  Software  handshaking
(XON/XOFF) functions properly.  The default after power-up is  no
handshake protocol.

 It  should be possible to use 75 baud by changing Timer  D  with
XBIOS 31 (Xbtimer), but I've never tested this:

     ~XBIOS(31,3,3,64,L:-1)

                     Procedures (CHAPTER.13)

Baud                                                         BAUD
 Change the baudrate:
     @baud(2400) 

Disclaimer
The text of the articles is identical to the originals like they appeared in old ST NEWS issues. Please take into consideration that the author(s) was (were) a lot younger and less responsible back then. So bad jokes, bad English, youthful arrogance, insults, bravura, over-crediting and tastelessness should be taken with at least a grain of salt. Any contact and/or payment information, as well as deadlines/release dates of any kind should be regarded as outdated. Due to the fact that these pages are not actually contained in an Atari executable here, references to scroll texts, featured demo screens and hidden articles may also be irrelevant.