SecondBASIC Documentation v3

Home / Command Reference / Library


Description: Adds an ASM library to your project. The ASM library will be included at the end of the source code regardless of where it's located in your project. The library file must be in the \slibrary\ folder in the SecondBASIC program folder.


Library <LibFile> [, <VarFile>]

Part Description
<LibFile> Required. This is the file name of the library located in the \slibrary\ folder.
<VarFile> Optional. If the library has a <VarFile>, this will declare the variables automatically instead of requiring to declare them yourself.


    Library "example.s"
    Dim a$ As String    ' Required variable from the library
    Call ExamplePrint, "Hello World"