[comp.sys.apple2] Help please!!

pgc@csadfa.cs.adfa.oz.au (Phil Clark) (02/13/91)

G'day to you all out there in netland!

I have a problem with my Apple IIc and ALL versions of PRODOS basic that I
have come across. I have not been able to get an answer from any of the
Apple agents, or even from what is supposed to be Apple themselves in Oz.

My problem is that when attempting to output characters from either serial
port, either to a printer or other device, using the Basic "print" command, 
extra charaters preceed the real output.  This appears to be because the 
program (Basic) seems to go into "Trace" mode of its own accord. The extra 
characters that are sent out are "# (Line No.)". I have tried using the 
"NOTRACE" command but it still outputs at least one set of the trace hash 
and line number before the first charater of real data.

Has anyone else come across this and if so, what is the solution.

I am trying to use a couple of simple Basic programs to control a receiver
and I need to be able to read in data via a serial port and to output data
via the same port. The extra characters preceeding the proper output screw
up the receiver or just cause it to ignore the data.

Please Email replies to the address below and if it seems like something
of general interest I will post a summary.

Thanks in advance.


Phil Clark [VK1PC]         Department of Computer Science,     Phone: 
                           Australian Defence Force Academy,   +61 6 268 8157
Email:                     Northcott Drive, Campbell,          Fax:
pgc@csadfa.cs.adfa.oz.au   Canberra, Australia, 2600.          +61 6 268 8581

taob@pnet91.cts.com (Brian Tao) (02/14/91)

From pgc@csadfa.cs.adfa.oz.au (Phil Clark):

> G'day to you all out there in netland!

    Phil, wree you having difficulty posting that message?  I received 8 times
here!  The messages were of slightly different length, and each was separated
by a couple of minutes.  Just thought I'd let you know that your messages DID
come through...

Brian T. Tao  {taob@pnet91.cts.com} ||  Computer guru?  Someone who got
University of Metro Toronto         ||  their computer a couple of weeks
Scarberia, ON, MIC 3A8         *B-) ||  before you did.  (Alvin Toffler)

ronl@pnet91.cts.com (Ron Lewin) (02/15/91)

Make sure you switch your input and output hooks using PRINT CHR$(4);"PR#x"
and PRINT CHR$(4);"IN#x".  If you do a straight IN#x without the CHR$(4), you
are cutting off ProDOS from the input and output, and since ProDOS (and
BASIC.SYSTEM) have TRACE active at all times, this would explain your
problems.  (Don't ask why BASIC.SYSTEM leaves TRACE active... It's a long
story).

Please send all replies to:
INet: zoo.toronto.edu!generic!pnet91!ronl
or
    : ronl@pnet91.cts.com