Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!decwrl!deccrl!bloom-beacon!bloom-picayune.mit.edu!athena.mit.edu!randy From: randy@athena.mit.edu (Randall W Winchester) Newsgroups: comp.sys.cbm Subject: Re: Hello! Summary: Converting BASIC <-> SEQ listings Keywords: BASIC, SEQ, conversions Message-ID: <1991May27.214633.25326@athena.mit.edu> Date: 27 May 91 21:46:33 GMT References: <873@seer.UUCP> Sender: randy@mit.edu Reply-To: randy@mit.edu (Randall W Winchester) Organization: Massachusetts Institute of Technology Lines: 47 In article <873@seer.UUCP> ericf@seer.UUCP (Eric Findley) writes: >Hello, I am new to this system, so bear with my mistakes. >I use an IBM AT and a Commodore 1 128, but my heart >is with the Commodore. Anyway, is there a program >available out there that will convert a PRG file to the >ascii characters and then back to the PRG format?? > >Again, please excuse my messy message, in the future, >my messages will look neater. I promise. > >Thanks. >Eric Findley >(sorry I don't have a .signature file) >ericf@seer.mystic.com Eric, To convert a BASIC program to a sequential file, do the following in direct mode: OPEN 2,dn,2, "filename,S,W":CMD 2:LIST where dn = the drive number, filename = the name of the file with which you want to save the listing. After the drive stops, enter the following, also in direct mode: PRINT#2:CLOSE2 The resulting SEQuential file is in PETSCII. To convert it to ASCII, use KeyDOS Utility, which can be obtained via ftp from the Milton ftp site: Files: keydos128v2.sfx and kdutils2.sfx Host: milton.u.washington.edu (128.95.136.1) Directory: /public/download/c128current The easiest way to turn a SEQ listing back into a program is to use the Batch File Execute function key definition from keydos128v2.sfx. KeyDOS and KeyDOS utilities are also available on a function ROM that can be installed in the 128's empty ROM socket. Send me email for more information. ******************************************************************************* * Randy Winchester * randy@mit.edu * PO Box 1074, Cambridge, MA 02142 * *******************************************************************************