BSAVE

From C64-Wiki
Jump to navigationJump to search
BASIC keyword
Keyword: BSAVE
Abbreviation: B Shift+S
Type: Command
Token code: 254/$FE 16/$10
Handling routine
in BASIC ROM:
BASIC 7.0: 41416/$A1C8
List of all BASIC keywords


Remark: This article describes the BASIC command BSAVE in Commodore BASIC V7.0 or higher.

Type: Command
General Programming-Syntax: BSAVE "filename"[,D<drive number>][, U>Device number]
                            [,Bbank number],Pstart address TO ,Pend address

The BSAVE command load a binary file starting at the specified location.

The file must be have a <filename> of up to 16 characters. Where:

  • filename is the name of your file
  • bank number selects one of the 16 BASIC banks (default memory configurations)
  • start address is the memory location where the save begins
  • end address is the memory location where the save ends + 1

Examples[edit]

BASAVE "SPRITE DATA", B0, P3584 TO P4096
Loads the binary file "SPRITE DATA" starting in location 3584 (in BANK 0).
BASIC V7.0 Commands

ABS | AND | APPEND | ASC | ATN | AUTO | BACKUP | BANK | BEGIN | BEND | BLOAD | BOOT | BOX | BSAVE | BUMP | CATALOG | CHAR | CHR$ | CIRCLE | CLOSE | CLR | CMD | COLLECT | COLLISION | COLOR | CONCAT | CONT | COPY | COS | DATA | DCLEAR | DCLOSE | DEC | DEF FN | DELETE | DIM | DIRECTORY | DLOAD | DO | DOPEN | DRAW | DS | DS$ | DSAVE | DVERIFY | EL | ELSE | END | ENVELOPE | ER | ERR$ | EXIT | EXP | FAST | FETCH | FILTER | FN | FOR | FRE | GET | GET# | GETKEY | GO64 | GOSUB | GOTO | GRAPHIC | GSHAPE | HEADER | HELP | HEX$ | IF | INPUT | INPUT# | INSTR | INT | JOY | KEY | LEFT$ | LEN | LET | LIST | LOAD | LOCATE | LOG | LOOP | MID$ | MONITOR | MOVSPR | NEW | NEXT | NOT | ON | OPEN | OR | PAINT | PEEK | PEN | (PI) | PLAY | POINTER | POKE | POS | POT | PRINT | PRINT USING | PRINT# | PUDEF | RCLR | RDOT | READ | RECORD | REM | RENAME | RENUMBER | RESTORE | RESUME | RETURN | RGR | RIGHT$ | RND | RREG | RSPCOLOR | RSPPOS | RSPRITE | RUN | RWINDOW | SAVE | SCALE | SCNCLR | SCRATCH | SGN | SIN | SLEEP | SLOW | SOUND | SPC( | SPRCOLOR | SPRDEF | SPRITE | SPRSAV | SQR | SSHAPE | ST | STASH | STEP | STOP | STR$ | SWAP | SYS | TAB( | TAN | TEMPO | THEN | TI | TI$ | TO | TRAP | TROFF | TRON | USR | VAL | VERIFY | VOL | WAIT | WHILE | WIDTH | XOR