Path: utzoo!attcan!uunet!unhd!jwm775 From: jwm775@uunet!unhd (Jonathan W Miner) Newsgroups: comp.sys.cbm Subject: Re: Convertion from runnable-BASIC to text-BASIC Message-ID: <1990Oct21.231141.9726@uunet!unhd> Date: 21 Oct 90 23:11:41 GMT References: <14423.27130fa4@max.u.washington.edu> <14443.27162735@max.u.washington.edu> Reply-To: jwm775@unhd.UUCP (Jonathan W Miner) Organization: Computing Information Services, University of New Hampshire Lines: 26 In article <14443.27162735@max.u.washington.edu> scott@max.u.washington.edu writes: > [... Deleted stuff ...] >harder of the two. The other problem that I am refering to >is, of course, going the other way, from runnable-BASIC to >text-BASIC. Are there also such nifty solutions/routines to >solve this problem? > [... More stuff ...] I have not touched my C=64 for over a year, but you should be able to redirect standard output (I'm a UNIX fan) to the disk and create a text file with LIST. Try the following by typing the lines in immediate mode. open 8,8,8,"0:LISTING,S,W":CMD 8:LIST print#8 close 8 This should do it. Another solution is to read the file from the disk. If I remember, the first two bytes is the load address, then each lines begins with two bytes (the line number), followed by the tokens. Each line is null terminated (0). The tokens can be found in various ML books. -- ----------------------------------------------------------------- Jonathan Miner | I don't speak for UNH, and UNH does not jwm775@unhd.unh.edu | speak for me! (603)868-3416 | Rather be downhill skiing... or hacking...