🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.cbm
Article #2153

Re: tape program format

#2153
From: Fred Walter
Date: Fri, 01 Aug 1986 03:31
45 lines
3112 bytes
In article <2946@ihuxf.UUCP> cuda@ihuxf.UUCP (Mike Nelson) writes:
>I am presently trying to modify a program for the C64 to copy files
>from the disk to tape instead of disk to disk.  I am to the point
>of getting the files off the disk and kind of on the tape.  It can
>find the name of the first program on tape and appears to begin to 
>load it.  However, it just keeps loading past the end of that 
>program and on into any others that were supposedly saved.  It
>can't seem to be able to determine the end of a program.  I use
>OPEN 2,1,2,"FILE NAME" and then call the CHROUT kernal routine to
>write the characters to the tape.  I think I'm missing a special
>set of characters that indicates the end of a program.  Do any of
>you out there have a description of the tape program file format
>or any kind of information on special characters or sequences of 
>characters that are used as tape controllers?  Also, how might I go
>about finding these things from programs already stored on tape?

Programs are stored on tape in a special format ... you can't (to my
knowledge) write programs AS PROGRAMS to tape using your method - as
far as your C64 is concerned you are just writing a data file.

On tape, a program file and a data file are not the same thing, unlike
on a disk - where all files (except REL and sometimes USR) are treated
alike. (They really are : if you save a program as follows SAVE "name,s",8 the
",s" tells the disk drive to store the program as a sequential file, and
that is how it will appear if you then look at the directory of your disk.
You can then load the program with LOAD "name,s",8. This also can be done
with USR (",u") files also.)

What is happening when you are trying to load is that your C64 finds the
data file (that you wrote out), sees it is not a program and so keeps on
searching for a program to load.

The only easy way to get a program onto tape is to save it using the SAVE
command - either from a BASIC program (using a dynamic keyboard), or from
machine language. The easiest way to get a program onto tape is to use a
program that already exists, such as Jim Butterfield's UNI-COPY (public
domain). If you can down-load programs it can be made available, other-wise
I have a BASIC program that will transfer an entire diskette to tape, that
you could use.

						fred

UUCP  : {allegra|clyde|linus|decvax|utzoo|ihnp4}!watmath!grwalter
CSNET : grwalter%watmath@waterloo.csnet
ARPA  : grwalter%watmath%waterloo.csnet@csnet-relay.arpa
Technical Details
Message-ID: <1369@watmath.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!grwalter
References: <2946@ihuxf.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site watmath.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!grwalter
From: grwalter@watmath.UUCP (Fred Walter)
Newsgroups: net.micro.cbm
Subject: Re: tape program format
Message-ID: <1369@watmath.UUCP>
Date: Thu, 31-Jul-86 23:31:53 EDT
Article-I.D.: watmath.1369
Posted: Thu Jul 31 23:31:53 1986
Date-Received: Sat, 2-Aug-86 01:37:51 EDT
References: <2946@ihuxf.UUCP>
Reply-To: grwalter@watmath.UUCP (The Super-User)
Distribution: net
Organization: U of Waterloo, Ontario
Lines: 45