DLOAD

From C64-Wiki
Jump to navigationJump to search
Stub This article is very short and not very detailed. Please help to improve it.
BASIC keyword
Keyword: DLOAD
Abbreviation: D Shift+L
Type: Command
Token code: BASIC 4.0:
214/$D6
BASIC 3.5 and 7.0:
240/$F0
Handling routine
in BASIC ROM:
BASIC 3.5:
 ?–?
$? –$?
BASIC 7.0:
41383–41415
$A1A7–$A1C7
List of all BASIC keywords


Remark: This article describes the BASIC command DLOAD in Commodore BASIC V3.5 or higher.

Type: Command
General Programming-Syntax: DLOAD  [<filename>] [,D<drive number>] [[,]ON U<device number>]

DLOAD is a BASIC 3.5/7.0 command that loads a BASIC program from disk into current memory. (Use LOAD to load programs from tape.) The program must be specified by a filename of up to 16 characters. DLOAD assumes device number 8, drive 0.

  • <filename> may be an asterisk (*) to load the first file on the device.

Permissible values (always interpreted as integer) for parameters:

Examples[edit | edit source]

Searches the disk for the program "BANKRECS" and LOADs it.

DLOAD "BANKRECS"

LOADs a program from disk whose name is stored in the variable A$. An error message is given if A$ is empty. Remember, when a variable is used as a filename, it must be enclosed in parentheses.

DLOAD (A$)

 

DLOAD "SPIEL1"

Load the program SPIEL1 from disk, which works in disk drive 0 with the device number 8.

DLOAD "*",U9

load the first program from disk, which works in disk drive 0 with the device number 8.

DLOAD "TOOL?",D1

load the first program, which is 5 chars long and contains the char string TOOL from drive 1 of a double floppy disk with the device number 8.

10 PRINT CHR$(147) "LOADING MAIN PROGRAM..."
20 PRINT "PLEASE, WAIT A MOMENT!"
30 A$ = "LOTTOSIM": GA=8: DR=0 
40 DLOAD (A$),D(DR),U(GA)

Using variables.


BASIC V3.5 Commands

ABS | ASC | ATN | AUTO | BACKUP | BOX | CHAR | CHR$ | CIRCLE | CLOSE | CLR | CMD | COLLECT | COLOR | CONT | COPY | COS | DATA | DEC | DEF | DELETE | DIM | DIRECTORY | DLOAD | DO | DRAW | DS | DS$ | DSAVE | END | EL | ELSE | ER | ERR$ | EXIT | EXP | FN | FOR | FRE | GET | GET# | GETKEY | GOSUB | GOTO | GRAPHIC | GSHAPE | HEADER | HELP | HEX$ | IF | INPUT | INPUT# | INSTR | INT | JOY | KEY | LEFT$ | LEN | LET | LIST | LOAD | LOCATE | LOG | LOOP | MID$ | MONITOR | NEW | NEXT | ON | OPEN | PAINT | PEEK | POKE | POS | PRINT | PRINT USING | PRINT# | PUDEF | RCLR | RDOT | READ | REM | RENAME | RENUMBER | RESTORE | RESUME | RETURN | RGR | RIGHT$ | RLUM | RND | RUN | SAVE | SCALE | SCNCLR | SCRATCH | SGN | SIN | SOUND | SPC | SQR | SSHAPE | STOP | STR$ | SYS | TAB | TAN | TRAP | TROFF | TRON | UNTIL | USR | VAL | VERIFY | VOL | WHILE | WAIT