Jump to content
IGNORED

Need help with XIO commands


noteit

Recommended Posts

I ran across some XIO commands that I have not seen before. Please, help document what each of the XIO commands do in this tcp/ip server program for atari does.

 

Source Code

 

5 CLOSE #1

10 A=0

15 XIO 36,#1,14,0,"R1:"

20 XIO 34,#1,(192+48),0,"R1:"

30 XIO 38,#1,64,0,"R1:"

40 OPEN #1,9,0,"R1:"

1000 STATUS #1,C

1010 IF PEEK(747)<2 THEN GOTO 1000

1015 XIO 40,#1,0,0,"R1:"

1030 PRINT #1;"HTTP/1.1 200 OK"

1040 PRINT #1;"Content-type: text/html"

1050 PRINT #1;

1060 PRINT #1;"<HTML><HEAD><TITLE>Atari 800 web server</TITLE></HEAD>"

1070 PRINT #1;"<BODY BGCOLOR=#000000><CENTER><FONT COLOR=#EFEFEF>"

1071 PRINT #1;"<H2>Welcome to the Atari 800 web server</H2>"

1075 A=A+1

1080 PRINT #1;"<P>Hits since last reset:";A

1800 PRINT #1;"</FONT></CENTER></BODY></HTML>"

1900 STATUS #1,C

1910 IF PEEK(749)>0 THEN GOTO 1900

1920 CLOSE #1

1930 OPEN #1,9,0,"R1:"

1940 XIO 34,#1,128,0,"R1:"

1970 STATUS #1,C

1980 IF PEEK(747)>1 THEN GOTO 1970

1990 XIO 34,#1,192,0,"R1:"

1999 GOTO 1000

 

You may of course use,modify and distribute this source code freely.

 

 

 

 

--------------------------------------------------------------------------------

 

Copyright © 2000 Kevin M. Loch All Rights Reserved.

Atari is a trade mark of Hasbro Interactive, Inc. which does not

sponsor, authorize or endorse this site.

Link to comment
Share on other sites

Please check my scan of the 850 manual:

 

http://home.comcast.net/~atariguy1/atari/850man/

 

XIO 34 allows you to force the DTR, RTS and XMT signals. 192+48= 0xf0 which forces both DTR and RTS to high.

 

XIO 36 controls the baud rate - 14 (0xe) is 9600 baud for the 850. 15 would be 19.2k for the BB. This XIO also controls the word size and stop bits.

 

XIO 38 controls parity, ASCII/ATASCII translation and Line feeds. 64 tells the 850 to append line feeds.

 

XIO 40 turns on concurrent (bidir) I/O Mode.

 

--Chris

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...