Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site utcs.uucp
Path: utzoo!utcs!flaps
From: flaps@utcs.uucp (Alan J Rosenthal)
Newsgroups: net.micro.apple
Subject: Re: Hackers delight - AppleII question
Message-ID: <871@utcs.uucp>
Date: Wed, 18-Sep-85 20:11:43 EDT
Article-I.D.: utcs.871
Posted: Wed Sep 18 20:11:43 1985
Date-Received: Wed, 18-Sep-85 21:22:17 EDT
References: <976@bunker.UUCP>
Reply-To: flaps@utcs.UUCP (Alan J Rosenthal)
Organization: University of Toronto - General Purpose UNIX
Lines: 19
Summary: 


DOS circumvents most of the properties of the normal system I/O.  In
particular, it requires that the input and output hooks in $3[6-9] point
to DOS rather than COUT or whatever.  So 3^P screws this up because it
changes them.
You should do a PR#3 instead.  Even from the monitor.  PR# is a basic
command, yes, but it is also a DOS command.  And that takes precedence
when DOS is installed.  DOS will change its own hooks to the 80-column
card, but leave the monitor hooks pointing to DOS so that DOS gets
first crack at all the I/O.
And from a basic program, you should do
	PRINT CHR$(4);"PR#3"
not
	PR#3
.  And from an assembly language program you should output the sequence
PR#3^M to $FDED.

Alan J Rosenthal
{decvax|ihnp4|cbosgd|etc}!utzoo!utcs!flaps