command/LOAD command/LOAD NAME LOAD -- Loads a program from storage device into a memory ABBREVIATION l <shift> O SYNOPSIS LOAD ["<file>"[,<device>][,<rel_flag>]] FUNCTION This is the command to use when you want to use a program stored on tape or on disk. If you type just LOAD and hit the <return> key the computer screen goes blank. Press play, and the computer starts looking for a program on the tape. When it finds one, the computer prints "FOUND <filename>". You can hit the C= key (Commodore key) to LOAD; if you don't press the key, the computer resumes searching on the tape after a brief interval. Once the program is LOADed, you can RUN, LIST, or change it. You can also type the word LOAD followed by a program name, which is most often a name in quotes ("<program_name>"). The name may be followed by a comma (outside of the quotes) and a number (or numeric variable), which acts as a device number to determine where the program is stored (disk or tape). If there is no number given, your computer assumes device number 1. The LOAD command can be used within a BASIC program to find and RUN the next program on tape. This is called chaining. The relocate flag (<rel_flag>) determines where in memory a program is loaded. A relocate flag of 0 tells the computer to load the program at the start of the BASIC program area, and a flag of 1 tells it to LOAD from the point where it was SAVEd. The default value of the relocate flag is 0. INPUTS <file> - file name and/or pattern to be loaded <device> - storage device number <rel_flag> - relocate flag (0 or 1) RESULT A program is loaded from storage device into a memory. EXAMPLES LOAD Reads in the next program on tape. LOAD "BASES" Searches tape for a program called BASES, and LOADS it if it is found. LOAD A$ Looks for a program whose name is in the variable called A$. LOAD "BRIDGES",8 Looks for the program called BRIDGES on the disk drive, and LOADs it if found. NOTES Device 1: Tape. Device 8: Disk. Relocate flag of 1 is generally used only when loading machine language programs. BUGS None SEE ALSO DLOAD