SpartaDOS X Reference Manual

The Command Processor — Commands




LOAD Command

Index


Purpose

Loads a file (does not run). This is useful for keeping commonly used commands resident in memory, thereby eliminating the need for these commands to load from disk. If no filename is used, all files previously loaded are removed from memory.
 

Syntax LOAD [d:][path][fname][.ext]
 
Type Internal
 
Related MEM, SAVE
 
Remarks  

If you LOAD a standard binary load file, the results are identical to those achieved with SpartaDOS 3.2. The file is loaded into memory and not run. There are a few primary uses:

  • To load MAC/65 object files into memory and then SAVE them back as continuous non-segmented binary files.
  • To load a binary program prior to running a debugger (for testing purposes).

The only difference is that, if the program contains an INITAD segment, that will be executed.

One use of LOAD is to temporarily make external commands memory resident. This will only work with special SpartaDOS X relocatable external commands. See the MEM command for more details.

LOAD is used to:

  • Keep an external command such as CAR or X, or keep the command processor (COMMAND.COM) resident in memory.
  • Remove all non-installed commands or programs from memory (use LOAD with no filename).
  • Load a subprogram into memory for use by other commands.

Previous page

Next page