DSAVE

From C64-Wiki
Jump to navigationJump to search
BASIC keyword
Keyword: DSAVE
Abbreviation: D Shift+S
Type: Command
Token code: BASIC 4.0:
213/$D5
BASIC 3.5 and 7.0:
$EF
Handling routine
in BASIC ROM:
BASIC 3.5:
 ?–?
BASIC 7.0: 41356/$A18C
List of all BASIC keywords


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

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

DSAVE is a BASIC 3.5/7.0 command that saves a BASIC program file to disk. (Use SAVE to save programs on tape.) The program must have a <filename> of up to 16 characters.


Remarks: Drive defaults to 0. Unit defaults to 8.

Permissible values (always interpreted as integer) for parameters:

Examples[edit | edit source]

DSAVE "BANKRECS”

Saves the program “ BANKRECS” to disk.


DSAVE (A$)

Saves the disk program named in the variable A$.


DSAVE “ PROG 3” ,U9

Saves the program “ PROG3” to disk on unit number 9


When a variable or an evaluated expression is used as a filename it must be surrounded by parentheses. It is possible to replace an existing file with @. (It is better to use SCRATCH then DSAVE as there have been problems in the past)


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