| QBASIC - Statements - BSAVE, BLOAD |
| BLOAD filename [,offset] | |
| filename | STRING: file saved with BSAVE If no extension is given, .BAS is assumed |
| offset | INTEGER: 0..65535 (0..&HFFFF): offset in segment specified by DEF SEG=. Default is the offset specified in the file-header (the location of the data when saved with BSAVE). |
| BSAVE filename ,offset, length | |
| filename | STRING: name of saved file If no extension is given, .BAS is used NB: this is not a basic program, so it is better to specify an extension like .DAT |
| offset | INTEGER: offset in segment specified by DEF SEG. |
| length | INTEGER: length in bytes |
| offset | length | field | contents | comment |
| 0 | 1 | ID | FDh = 253d | BSAVE/BLOAD ID |
| 1 | 2 | segment | ? | segment defined with DEF SEG |
| 3 | 2 | offset | ? | BSAVE , offset |
| 5 | 2 | length | ? | BSAVE , , length |
DEF SEG = &HB800 BSAVE "screen.dat", 0, 16192 DEF SEG --- BLOAD "screen.dat" |
file length: 16192 + 7 bytes header = 16199 bytes |