Re: BASIC -> ASCII -> BASIC

From: William Levak (wlevak_at_cyberspace.org)
Date: 2000-09-27 22:42:14

On Wed, 27 Sep 100 g.j.p.a.a.baltissen@kader.hobby.nl wrote:

> Hallo allemaal,
> 
> I know there exist some programs to convert BASIC to ASCII and visa versa. I
> use some of my own and they work alright. But I doubt if anyone else can use
> an ASCII-file of mine without running into conversion problems.
> 
> My question is: Does a standard exist how to translate a PRG?

The actual Basic program file is essentially a binary file.  Translating
to ASCII is meaningless.

If you want to transfer Basic program files to other systems, it is best
to list the program to a file.  The resulting file is then in Commodore
ASCII which can be translated to standard ASCII.

For instance, if you have loaded your program into memory, you can produce
a text listing of it on floppy drive 8 by:

OPEN 1,8,8,"programname,s,w":CMD 1:LIST

Wait for listing to stop and then:

PRINT#1:CLOSE 1

There are routines available that can load a listing file into memory so
that it can be saved and run in Basic.  I use "Commodore Recruncher",
published in Compute!, July 1985.

-
This message was sent through the cbm-hackers mailing list.
To unsubscribe: echo unsubscribe | mail cbm-hackers-request@dot.tml.hut.fi.

Archive generated by hypermail 2.1.1.