Visit Atarimax Store


Free-Net Logo
The Atari SIG Historical Archive
Created and hosted by: atarimax.com
[ HOME | GO ATARI | 8-BIT | ST/TT | PORTFOLIO | LYNX | JAGUAR | LIBRARY ]


Article #19 (51 is last):
From: aa700@cleveland.Freenet.Edu (Michael Current)
Newsgroups: freenet.sci.comp.atari.product.8bit.tricks
Subject: "Fixed" PRINT.BAS (for the XEP80)
Reply-To: aa700@cleveland.Freenet.Edu (Michael Current)
Posted-By: xx004 (aa700 - Michael Current)
Date: Thu Dec 10 09:54:35 1992




 From: ab588@yfn.ysu.edu (joseph sabatino)


OK...what you are looking for is in the XEP manual and on the 
disk....print out the doc files on disk.
There is a program on the disk called PRINT.BAS which configures
the autorun.sys file (xep80 handler).  I am including a copy of
the "fixed" version of the program (because the one on the atari
disk has an error in it).
I'm going to send PRINT.BAS and an interesting note from Matt
Radcliff on how to use it.  Also in the next msg I'm going to
send you a nifty little check book balancing program I wrote
that uses some of the goodies that are on the xep80 but you
have to use atari's handler not the one in SDX cart (the sparta
cart doesn't support graphics);
Here's the PRINT.BAS
------
100 REM PRINTER CONFIGURATION PROGRAM
110 DIM A$(2048),IN$(16),OUT$(16):REM ALLOCATE STRINGS
120 IN$="D:AUTORUN.SYS":REM READ THIS FILE
130 OUT$="D:PRINT.SYS":REM CREATE THIS FILE
140 TRAP 32000:REM IF NO AUTORUN.SYS
150 OPEN #1,4,0,IN$
160 TRAP 180:REM TO CATCH EOF
170 A=A+1:GET #1,B:A$(A,A)=CHR$(B):GOTO 170:REM BUILD INPUT STRING
180 CLOSE #1
190 I=136:? "AUX1 VALUE";:INPUT A:REM PRINTER AUX1 BYTE
200 A$(I,I)=CHR$(A)
210 I=137:? "AUX2 VALUE";:INPUT A:REM PRINTER AUX2 BYTE
220 A$(I,I)=CHR$(A)
230 OPEN #2,8,0,OUT$
240 ? #2;A$;:CLOSE #2:REM WRITE MODIFIED STRING TO FILE
250 END 
32000 ? "FILE NOT FOUND"
-------
Now here's MatRat's note from GEnie
-------
as P1:, P2:, or completely disabled -
with the PRINT.BAS utility.  The
information on how to do this is
hidden in the technical documentation,
however.  Do you have a P:R: or 850
interface out there? Where is your
printer connected, to the 850/PR or
the XEP80?  I expect that your printer
is on the 850 or PR, but the XEP80,
when in use, is trapping all your P:
output --- and the configuration of
the XEP80 handler your using EXPECTS
the printer to be attached to the XEP -
it sees that it's not there, and
returns an error.  Error 136 is END OF
FILE - I doubt that's the error you're
getting. Maybe 139?
 
If it's OK with Atari, I can upload
several PRE-Configured versions of the
XEP80 handler where the XEP80 responds
to P1:, P2:, or NONE OF THE Pn:
addresses.
 
Mat*Rat
----------
Category 10,  Topic 26
Message 36        Sat May 28, 1988
DMAY [Darryl@Atari]          at 19:46 
EDT
 
Please do so!
 
Darryl May, Atari Corporation
----------
Category 10,  Topic 26
Message 37        Sun May 29, 1988
C.VENDEL1                    at 18:36 
EDT
 
Thanks Mat*Rat, hmmm I printed out and
read Atari technical file and didn't
notice that the XEP80 and printer port
could BOTH work, great to hear, I will
admit, Atari may be quite late with
AtariWriter 80, but they did do an
excellent job with including
information with the dapter, thats
certain a major point on their side,
and Thank you Atari for allow
uploading of the XEP80 handler....
----------
Category 10,  Topic 26
Message 38        Mon May 30, 1988
MAT.RAT                      at 01:31 
EDT
 
To configure XEP80 P: handling:
 
Load "PRINTER.BAS" and change line 240
to read:
 240 ? #2;A$;:CLOSE #2:REM WRITE
MODIFIED STRING TO FILE
 
Note the program reads ?#1, which will
generate a BASIC error. Save this
version and then RUN.  You will be
asked for values of AUX1 and AUX2,
after the AUTORUN.SYS file for the
XEP80 has been read in. You will
normally enter a ZERO, 0 for AUX2. 
For AUX1, use one of the following
values:
 
 AUX1=0    -- P1: goes to XEP80, P2:
goes over SIO bus to any other printer
interface that may recognize the P2:
address.
 
  AUX1=1   -- P1: and P2: go over the
SIO bus, the XEP80 printer port is
disabled
 
  AUX1=7   -- P1: goes over SIO bus to
850, PR Connection, whatever. P2: goes
to the XEP80.
 
These seem to be the only meaningful
values for AUX1.  This program will
create a new file called PRINT.SYS. 
Go to dos and rename AUTORUN.SYS to
XEP80.SYS. Then rename PRINT.SYS to
AUTORUN.SYS and reboot. If you have an
850 or PR Connection, you'll probably
want to use an AUX1 value of 7, or 1. 
This should solve your printer
problems.
 
                     Mat*Rat
----------
-- 
Joe Sabatino-->ab588@yfn.ysu.edu
-- 
         Michael Current, Cleveland Free-Net 8-bit Atari SIGOp
Carleton College, Northfield, MN, USA / UUCP: ...!umn-cs!ccnfld!currentm
      Internet: currentm@carleton.edu / Cleveland Free-Net: aa700





Visit Atarimax Store