[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: convert a apple basic program to source code
Jeffrey Theusch (larva_jt1@yahoo.com) wrote:
: On Sun, 04 Mar 2001 13:48:31 +0000, Donald Myers <myers@speakeasy.org>
: wrote:
: >I have a apple II basic program on a 5.25 disk image. how can I convert it
: >to a mac text file??
: >
: >
: >D Myers
: >
: (017- How do I save a BASIC program in ASCII text form?)
: The following line added to the front of your Applesoft BASIC program
: will save it in a Text file named "LISTFILE". It works in DOS 3.3 or
: ProDOS.
: 0 HOME:PRINT CHR$(4)"OPEN LISTFILE": PRINT CHR$(4)"WRITE LISTFILE":
: POKE 33,33: LIST 1,: PRINT CHR$(4)"CLOSE": END
: From there it is just a matter of transferring the text file to your
: Mac.
Caveat: Make sure you're looking at a 40-column text screen before you
run this. I always suggest the following variant:
0 PRINT CHR$(21):HOME:POKE 33,33:PRINT CHR$(4);"OPEN LISTFILE":PRINT
CHR$(4);"WRITE LISTFILE":LIST 1,63999:PRINT CHR$(4);"CLOSE":TEXT:END
(The PRINT CHR$(21) shuts down the 80-column display if it is active, and
the TEXT negates the effect of the POKE 33,33)
--Dave Althoff, ][.
--
/X\ _ _ _*** Closed for the season ***
/XXX\ /X\ /X\_ _ /X\__ _ _ _____
/XXXXX\ /XXX\ _/XXXX\_ /X\ /XXXXX\ /X\ /X\ /XXXXX
_/XXXXXXX\__/XXXXX\/XXXXXXXX\_/XXX\_/XXXXXXX\__/XXX\_/XXX\_/\_/XXXXXX