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

Re: Converting



In article <3mejo4$5en@epx.cis.umn.edu>,
Bart A Flentje <flen0001@gold.tc.umn.edu> wrote:
>Does anyone have a clue to convert Applesoft BASIC files (attribute A) to 
>apple text files (attribute T)?  The reason is I want to transfer old 
>Apple code to IBM via modem and when doing Applesoft files, the uninterpreted
>code gets sent and not the text.

   Pretty simple; just 'list' the program to a file. For example, add
this line to the start of a program, then run it. It'll create a text
file on disk with the pure ascii form of the program.

1 D$=CHR$(4):PRINT D$"OPEN LISTING.TXT":PRINT D$"WRITE LISTING.TXT":
  POKE 33,33: LIST 2,63000: PRINT D$"CLOSE":END

   (This is all one line, despite my break in the middle. The listing
is written to the file 'LISTING.TXT' (note that it must be specified
twice), which you can then upload to IBM).

Nathan Mates
-- 
<*> Nathan Mates http://www.ugcs.caltech.edu/~nathan/      <*>
# And he said to them, "To you has been given the secret of the
# Kingdom of God, but for those outside, everything comes in 
# parables" Mark 4:11, NRSV