DSAVE

From C64-Wiki
Jump to: navigation, search
BASIC keyword
Keyword: DSAVE
Abbreviation: D Shift+S
Type: Command
Token code:
Handling routine
in BASIC ROM:
BASIC 3.5:
 ?–?
BASIC 7.0:
 ?–?
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 be 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]

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 | DSAVE | END | ERR$ | 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 | 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 | USR | VAL | VERIFY | VOL | WAIT