[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applesoft code, how to print?



In article <1d4k7kx.icke0zfk020mN@line10gio.joynet.it>,
David Sebastio <sebastio@joynet.it> wrote:
>I have a game, written in Applesoft Basic. Now, I can see the code on my
>screen using Catalog, but now I want to print it. I know that there is a
>command that force the output to the printer (slot 1, Imagewriter) but I
>don't remember it. Can you help me?

   I recommend that you read the Applesoft Basic Frequently Asked
Questions (FAQ) at http://www.visi.com/~nathan/a2/faq/asoft.html which
covers this and many more questions. From the Applesoft prompt, "PR#1"
sends (no"s) will redirect output to whatever's in slot 1, then you
can LIST and finally "PR#0" (or #3 if you want the 80-column display)

>Another thing, how can I save this code in ASCII format, or how can I
>see the code opening it in a text editor?

   Assuming you have DOS 3.3 or ProDOS loaded, tack this line of code
on to the beginning of that file and run the program. It'll create a
file on disk with name 'ASOFT.LISTING'; replace the two occurrances of
that name below to write to something else.

1 D$=CHR$(4): PRINT D$"OPEN ASOFT.LISTING": PRINT D$"WRITE
ASOFT.LISTING" : POKE 33,73: LIST : PRINT D$"CLOSE": TEXT: END

[That's all one line, despite being formatted here]

Nathan Mates
--
<*> Nathan Mates http://www.visi.com/~nathan/      <*>
# What are the facts? Again and again and again-- what are the _facts_?
# Shun wishful thinking, avoid opinion, care not what the neighbors
# think-- what are the facts, and to how many decimal places? -R.A. Heinlein