Tools LIB Manager

Top  Previous  Next

This option will result in a scan of the LIB directory.

When ready the following window will appear:

 

lib_manager

 

 

The Libraries are shown in top of the window.

The bottom info window will show information about the library.

 

You can view all the routines that are inside the lib by clicking the +.

Routines shown in bold are also found in other libraries.

 

 

Add

When a library is selected you can add a new ASM routine to the library.

A file dialog window will appear and you can select the file that contains the routine.

 

Delete

When you select a routine, and you click the Delete button, the routine will be removed. There is NO confirmation to ask if you are sure, so take care.

 

Print

This option can be used to print the entire library tree. We suggest to print to PDF.

 

Find

This option can be used to find a routine. All libraries are searched for the name. You can enter a search phrase.

Pressing F3 will search for the next instance.

 

Compile

The Compile button will compile the lib into an LBX file. When an error occurs you will get an error. A file with the ERR extension is generated that contains information about the errors.

 

A compiled LBX file does not contain comments and a huge amount of mnemonics are compiled into object code. This object code is inserted at compile time of the main BASIC program. This results in faster compilation time.

 

The DEMO version comes with the compiled MCS.LIB file which is named MCS.LBX. The ASM source (MCS.LIB) is included only with the commercial edition.

 

With the ability to create LBX files you can create add on packages for BASCOM and sell them. For example, the LBX files could be distributed for free, and the ASM source could be sold.

 

 

Some library examples :

 

MODBUS crc routine for the modbus slave program.
Glcd.lib contains the graphical LCD asm code

 

 

Commercial packages available from MCS:

 

I2CSLAVE library
BCCARD for communication with www.basiccard.com chipcards

 

 

See Also

$LIB for writing your own libraries