BLOAD

From C64-Wiki
Jump to navigationJump to search
BASIC keyword
Keyword: BLOAD
Abbreviation: B Shift+L
Type: Command
Token code: 254/$FE 11/$0B
Handling routine
in BASIC ROM:
BASIC 7.0: 41496/$A218
List of all BASIC keywords


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

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

The BLOAD 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 loading begins

Examples[edit | edit source]

BLOAD "SPRITE DATA", B0, P3584 
Loads the binary file "SPRITE DATA" starting in location 3584 (in BANK 0).
BLOAD "DATA1", DO, U8, Bl, P4096
Loads the binary file "DATA1" into location 4096 (BANK 1) from Drive 0, unit 8.

If start address is not specified the file will load at the same address it was saved from.

BLOAD "FARBRAM", B15, P55296, U9
Loads the file "FARBRAM" from drive 9 into Color-RAM of the VIC (I/O map).
BLOAD "BINPROG" 
Loads the binary file "BINPROG" to the saved address from default Drive 0, unit 8


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 | (OFF) | ON | OPEN | OR | PAINT | PEEK | PEN | (PI) | PLAY | POINTER | POKE | POS | POT | PRINT | PRINT USING | PRINT# | PUDEF | (QUIT) | 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 | WINDOW | WIDTH | XOR