Available on: atari c128 c64 c64reu coco coco3 cpc msx1 vic20
Alias: STORAGE...END STORAGE

BEGIN STORAGE...END STORAGE

The BEGIN STORAGE..END STORAGE allows to begin describing the content of a storage media. The syntax of this command allows to define up to two parameter. The first parameter, name, refers to the internal name of the storage. The filename, optional, will define the file name that will contain the "image" of the storage. If omitted, the program filename will be used, and an additional incremented number will be appended, one for each storage media.

Note that, for some targets, a special toolchain is needed to manage this keyword. In particular, for cpc target you need to install and use the correct version of the z88dk-appmake application. Starting from version 1.15.3 of ugBASIC, that is, since BEGIN STORAGE was implemented for cpc, it is necessary to use a patched version of the z88dk toolchain. The version that can be obtained from the official release is not powerful enough to include external files in the disk image that is created for that target.

You can find out the empowered version looking for a fork of that project, or as a module inside ugBASIC. You should recompile it on a specific branch (ugbasic branch, precisely). On ugBASIC website and on the UGBASIC-IDE there is a precompiled version from that version, that can be directly used.

SYNTAX

 BEGIN STORAGE name [AS filename] ... END STORAGE
 STORAGE name [AS filename] ... END STORAGE


Legend
  • id : identifier
  • type : datatype
  • v : value
  • "..." : string
  • [...] : optional

EXAMPLE

 BEGIN STORAGE "dischetto"
 ...
 ENDSTORAGE


Used in:

ABBREVIATION: BeStrEeStr

Join BASIC 10Liner Contest with ugBASIC!

An interesting competition is held at the beginning of each year: the BASIC 10Liner Contest. It is possible to use ugBASIC to participate in the next "BASIC10Liner" competition, in the following categories:

  • PUR-120 - A game in 10 lines of max 120 characters (w/abbrev.)
  • EXTREME-256 - A game in 10 lines of max 256 characters (w/abbrev.)
  • SCHAU - Any program in 10 lines of max 256 characters (w/abbrev.)
In order to reduce space you can use this abbreviation for this instruction:

BEGIN STORAGE...END STORAGE ↔ BeStrEeStr

Any problem?

If you have found a problem with this keyword, if you think there is a bug or, more simply, you would like it to be improved, open an issue for this example on GitHub.
Thank you!

open an issue BACK TO KEYWORDS