background image

SAM Coupe Disk Drive Manual                                    13

ESCAPING FROM A 

PROGRAM  
 

RENAMING A FILE  

 

COPYING A FILE  
 

"One point has 
already been 

proved. 
Everything that 

happened once  
can happen again" 

 
(Jacobo Timerman)  

 

MAKING BACK-UPS  

 
"It can't happen 

here is number  
one on the list  

of famous last 
words" 

 
(David Crosby) 

 

To break into the program and stop Squares 

running, use the Coupe's normal ESC key. 
 

Note that ESC will stop the computer running 
most normal routines and BASIC programs, but 

it will have no effect during a disk 
read/write (i.e. LOAD or SAVE) operation 

until the disk activity has been completed. 
 
Type DIR 1 to see 'Squares' directory entry. 

 
To RENAME a file, we use the keywords RENAME 

and TO. Let's RENAME the Squares file as 
Example 1: RENAME "Squares" TO "Example 1" 

 
Look at the DIRectory again, to confirm that 

the change has been made. 
 

To copy a file, use the two keywords COPY 
and TO. COPY the program you have written by 

typing: COPY "Example 1" TO "Newcopy" 
 

Once the file has been loaded into the 
computer's memory, you are prompted to 

"Enter target disk press any key". To make a 
new copy of the file on the same disk, 

simply press the SPACE bar now. Or, if you 
want your copy on a different disk, insert 

that now and press SPACE. (Don't forget that 
your disk must be formatted.) 

 
When copying's complete, you'll see: "Enter 
source disk press any key". The Coupe is 

checking whether there are more files to be 
copied. (You'll see why when you come to 

"Wild cards" later.) so re-insert your 
original disk and press SPACE. If there are 

no other files to copy, you'll see an OR 
message. 

 
Computer abuse is a growing social problem. 

A

common cause of violence is when the 

computer deliberately corrupts or loses a 

vital file. Don't believe that it can't 
happen to you. It will! Even the SAM Coupe 

can be temperamental. So make it a habit to 
back up key files. Use a different disk but 

keep the same file-name. In this case, using 
your original disk, type: 

 

COPY "d1:Example 1" TO "dl:Example 1"  

 

Again, you're prompted to insert the target 
disk, and this time you'll put in a 

different (formatted) disk.  If  the  file 
already exists on the back-up disk, you'll 

be asked whether you wish to overwrite it. 
Type Y for Yes or N to cancel the copy. 

Summary of Contents for SAM drive

Page 1: ......

Page 2: ...3rd edition NO PART OF THIS MANUAL MAY BE REPRODUCED OR ADAPTED BY ANY MEANS UNLESS FOR THE PURPOSES OF REVIEW OR FOR THE USE OF THE OWNER OF THIS MANUAL IN ENTERING PROGRAMS INTO THEIR SAM COUPE EVER...

Page 3: ...a file and Verifying 12 Loading a file 12 Escaping from a program 13 Renaming a file 13 Copying a file 13 Making back ups 13 Erasing a file 14 Short cuts to loading 14 Wild cards 14 File name extensi...

Page 4: ...d can be placed back into the computer memory the RAM whenever you re ready To find the file you want on tape you have to start at the beginning and carry on until the end or until you reach what you...

Page 5: ...when you buy your disks the manufacturers have left them empty of track and sector information so that they can be used with any type of computer Before you use them you ll need to FORMAT them to tell...

Page 6: ...start saving and loading with it But you re not yet The problem is that the computer needs to be told whether it s dealing with a cassette recorder or a disk drive Read and understand this section but...

Page 7: ...on a disk the System Disk and these are loaded into the computer s memory at the beginning of each session with a disk drive The advantage of this is that we or others may later want to add new disk d...

Page 8: ...so The new disk will be formatted wiping out any information stored on it so only use a brand new blank disk After formatting the disk will be verified to make sure that it is in good condition You wi...

Page 9: ...the disk which you can load into Flash and work with Flash saves screens to disk as CODE files If you wish to view a screen saved from Flash outside of Flash or load a Flash screen into your own prog...

Page 10: ...reen4 49 SCREEN 8 astro 49 SCREEN 9 king 49 SCREEN 10 flash 4 BASIC 9800 11 flash1 13 C 32768 57344 12 flash2 83 C 105312 42000 13 fontld 2 BASIC 10 14 font 1 C 21648 328 15 dumpld 2 C 20224 512 16 UD...

Page 11: ...ARRAY Numeric data array ARRAY Character array You may not fully understand the significance of all these types of file yet but don t worry The essentials of disk operation are explained in this manua...

Page 12: ...as they have special uses we ll come to this later Now check that the file has been correctly SAVEd by typing VERIFY Squares An OK message at the bottom of the screen will confirm the SAVE Now clear...

Page 13: ...ry you are prompted to Enter target disk press any key To make a new copy of the file on the same disk simply press the SPACE bar now Or if you want your copy on a different disk insert that now and p...

Page 14: ...ASE D2 file name Now you ve done it the hard way let s start making things easier for you First loading Instead of typing in the LOAD command with the file name you can type for example LOAD B Remembe...

Page 15: ...e up to 10 characters long including spaces But to help you organise your files the Coupe allows you to use file name extensions in much the same way as a business computer For example you might tag a...

Page 16: ...he disk in drive 1 and then copy the contents of the disk in drive 2 to the disk in drive 1 sector by sector in other words very accurately but very slowly This command can only be used on a two drive...

Page 17: ...of another file say old file COPY OVER new file TO old file The above will copy the contents new file to old file old file will keep its original name This will work even if old file is PROTECTed You...

Page 18: ...s if you do you are likely to corrupt the disks If you wish to make changes SAVE the program in memory to a disk created on the Coupe DISCIPLE and PLUS D users will be familiar with snapshot files The...

Page 19: ...as POKE 92772 10 After making any changes you want to using SAM Basic return to the program by typing CALL MODE 1 Later when you look at the DIRectory you ll see that the snapshot files might be list...

Page 20: ...ks from your drives in case a sudden surge of electricity corrupts the data 5 Do not insert or remove a disk from a drive when the drive light is on Do not press the reset button with a disk in a driv...

Page 21: ...with another disk try loading files from the first disk again it might be just one file that s corrupted But if the message re appears you ll need to re FORMAT the disk Hope you ve kept backups LOADIN...

Page 22: ...file server system 7 type PRINT PEEK DVAR 7 to see the current SAMDOS version number UGD Design Save This program allows you to create user defined graphics and to save them as a file Once saved you c...

Page 23: ...ers Once you have finished you save them as a file called say SUPER UDG If you now write a BASIC program and wish to use the characters you have created at the beginning of your program include the li...

Page 24: ...17 20 Reading a sector see READ AT D ARRAY see File types RENAME 13 18 20 Demonstration programs 8 23 DEVICE 6 7 10 12 14 20 SAVE OVER 6 11 13 16 23 DIR 5 10 17 19 21 2 SCREEN 9 11 19 DIRectory see D...

Reviews:

Related manuals for SAM drive