DLOAD X, expr1
DLOAD X, expr1, expr2
DLOAD X, expr1, expr2, expr3
Supported by: Quest Super BASIC 5.0 and 6.0
COMX BASIC V1.00, Floating Point BASIC 2.2, Pecom 32 BASIC, Pecom 64 BASIC 1.0 and 4.0, Quest Super BASIC 3.0, RCA BASIC3 V1.1, Telmac SBASIC v 24.3: DLOAD
Quest Super BASIC 1.4: DLOAD
This command loads any previously generated data (from a DSAVE). The data may be loaded with any BASIC program. That is, the data is automatically placed at the end of existing program space over-writing any existing data.
CAUTION, Three points must be considered:
- A PLOAD command wipes out previous data and then loads the program. Therefore, a DLOAD command must be executed AFTER a program is in user space. Any editing of the user space will also wipe out data. Therefore, if editing is necessary, a DSAVE should be executed to save the data (if desired), the program edited, and a DLOAD executed to return the data.
- The act of doing a DLOAD automatically dimensions any arrays within the stored data. When executing the program, re-dimensioning these arrays must be avoided. This is simple since a ( RUN expr) must be executed to avoid wiping out previously generated or existing data. And the expr can be the line number following the DIM statements. Execution will then start after the DIM statement.
- Strings are placed at the end of array space. If additional arrays are dimensioned after strings have been generated, the strings will be wiped out by the growing array space. For this reason, all array dimensioning should be done before any strings are generated for permanent storage.
Storage media is defined by X. X can be either a C, S or F with the definitions for each as follows:
C -- cassette
S -- stringy floppy
F -- floppy disc
The S and F options require the associated hardware and software packages. Quest Super BASIC 5.0 and 6.0 contain the cassette routines necessary to interface with any cassette recorder. These routines use the Q line and EF3 as the serial data lines.
The option expr1, expr2, and expr3 are defined as follows:
expr1 - physical file # (1,2,3..N) defaults - 1
expr2 - drive # (0,1,2,3) defaults - 0
expr3* - option # (1,4) defaults - 4
Motor control exists via port 3. Expr2 defines the data sent to port 3. Bit 0 controls the read motor while bit 1 controls the write motor.
* This expression does not apply to cassette use.