LIBRARY

Compatible with:
DOS Maximite CMM MM150 MM170 MM+ MMX Picromite ArmiteL4 Armite F4 ArmiteH7 CMM2

Syntax:
LIBRARY SAVE
LIBRARY DELETE
LIBRARY LIST

Description:
The library is a special segment of program memory that can contain program code such as subroutines, functions and CFunctions. 
These routines are not visible to the programmer but are available to any program running on the Micromite and act the same as built in commands and functions in MMBasic. 
See the chapter "Special Functions and the Library" in the micromite manual for a full explanation.
LIBRARY SAVE will take whatever is in normal program memory, compress it (remove redundant data such as comments) and append it to the library area (main program memory is then empty). 
The code in the library will not show in LIST or EDIT and will not be deleted when a new program is loaded or NEW is used.
LIBRARY DELETE will remove the library and recover the memory used.
LIBRARY LIST will list the contents of the library.
Note that any code in the library that is not contained within a subroutine or function will be executed immediately before a program is run. 
This can be used to initialise constants, set options, etc.

 

Last edited: 30 September, 2020