[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Applesoft -> ASCII?
In article <CKDoLL.Mn4@cbnewsd.cb.att.com>
bird@cbnewsd.cb.att.com (j.l.walters) writes:
>
> The question occurs once or twice a month on the newsgroup, "How do I
> convert my AppleWorks BASIC programs to ASCII files so I can perform
> the following (sometimes indecent actions), with them?
[snip]
> If the BASIC program uses line 0 you can change the above to load at
> line 65000 and change the list 1 - to list 1 64999
No you can't. The last legal line number in Applesoft BASIC is 63999,
so use line number 63999 and use LIST 0,63998.
i.e.
63999 D$=CHR$(4): PRINT D$;"OPEN LISTING": PRINT D$;"WRITE LISTING":
LIST 0,63998: PRINT D$;"CLOSE": END
then use RUN 63999 to create the listing.
Some people (myself included) have suggested that you need to use POKE
33,33 to prevent Applesoft from inserting spaces into the line. This
is only necessary if you are doing this in DOS 3.3 with "MON O" active.
--
David Empson
dempson@swell.actrix.gen.nz
Snail mail: P.O. Box 27-103, Wellington, New Zealand