Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!dlyons From: dlyons@Apple.COM (David Lyons) Newsgroups: comp.sys.apple Subject: Re: Apple basic to ibm conversion Message-ID: <32300@apple.Apple.COM> Date: 7 Jun 89 00:05:13 GMT References: <89157.142053DRF6@PSUVM> Organization: Apple Computer Inc, Cupertino, CA Lines: 43 In article <89157.142053DRF6@PSUVM> DRF6@PSUVM.BITNET writes: > > Does anybody know of a straighforward way to get apple basic files converted >to text files [...] ? > >Dave Forsman Okay, I'll tell you a boring way first. Pick an unused line number, like maybe 0, and do this: Load your Applesoft program. 0 ?CHR$(4);"OPEN THE.LISTING": ?CHR$(4);"WRITE THE.LISTING": LIST 1, : ?CHR$(4);"CLOSE THE.LISTING": END Then RUN it from that line (just RUN if you used line 0; RUN 63999 if you used 63999 (the highest allowed), etc). If you are using DOS 3.3 (don't), be sure MON O is not turned on (type NOMONICO to turn off all monitoring), since it will make Applesoft insert carriage returns into the file where you almost certainly don't want them (in the middle of long lines that would wrap). If you're using ProDOS, the above should work fine. Now, here's how *I* would do it: Run Davex (a Shareware command shell which happens to be written by me). Type > the.listing; blist my.program You can download Davex from a variety of places. I also generally mail copies to people who ask & give me a postal address (specify 5.25 or 3.5 disk). --Dave Lyons, Apple Computer, Inc. | DAL Systems AppleLink--Apple Edition: DAVE.LYONS | P.O. Box 875 AppleLink--Personal Edition: Dave Lyons | Cupertino, CA 95015-0875 GEnie: D.LYONS2 or DAVE.LYONS CompuServe: 72177,3233 Internet/BITNET: dlyons@apple.com UUCP: ...!ames!apple!dlyons My opinions are my own, not Apple's.