Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!sri-spam!sri-unix!hplabs!hp-sdd!ncr-sd!bigbang!crash!mwilson From: mwilson@crash.UUCP Newsgroups: comp.sys.cbm Subject: Re: Changing sequential files to program files Message-ID: <716@crash.CTS.COM> Date: Tue, 27-Jan-87 12:45:29 EST Article-I.D.: crash.716 Posted: Tue Jan 27 12:45:29 1987 Date-Received: Thu, 29-Jan-87 04:26:15 EST References: <592@rayssd.RAY.COM> Reply-To: mwilson@crash.CTS.COM (Marc Wilson) Distribution: na Organization: Grossmont College, El Cajon, Ca. Lines: 27 Keywords: SEQ -> PRG In article <592@rayssd.RAY.COM> msf@rayssd.RAY.COM (Michael S. Frank) writes: >Does anyone out there know how I can convert a sequential file (which is how >my terminal program downloads) into a program file (so I can load and run it) >I've tried to look at Track 18/Block 1 etc, but can't seem to get the hang >of it. Thanks in advance! If the file actually contains a program in *tokenized* form, it is fairly easy to change the filetype to PRG. It's not 18,1 that you have to change, though. What you have to do is change the first byte in the directory entry for the file. A SEQ file will have $81 here. Change this to $82, and you have a PRG file. If the SEQ file does *not* contain a tokenized program, then you have to use a different approach. It involves re-directing BASIC's input vector to the open disk file. Sorry, but I can't tell you how it's done... I no longer have the equipment. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Marc Wilson ARPA: ...!crash!mwilson@nosc ( preferred ) ...!crash!pnet01!pro-sol!mwilson@nosc UUCP: [ akgua | hp-sdd!hplabs | sdcsvax | nosc ]!crash!mwilson mwilson@crash.CTS.COM ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~