Table of Contents

ugBASIC User Manual

BEGIN STORAGE...END STORAGE ✓

SYNTAX

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

PURPOSE

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.

EXAMPLE

  BEGIN STORAGE "dischetto"
  ...
  ENDSTORAGE

See also the following example files:

ABBREVIATION

 BeStrEeStr

AVAILABLE ON

ALIAS FOR

STORAGE...END STORAGE

ANY PROBLEM?

If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please open an issue for this keyword on GitHub. Thank you!

POWERED BY