Warning

You're browsing the old v2.x documentation. This version is no longer maintained. Click here to go the v3.x documentation.

Extensions

XC=BASIC supports third-party extensions since version 2.2. Extensions are includable source files that define

  • new COMMANDS
  • new FUNCTIONS
  • new CONSTANTS
  • new VARIABLES

Extensions can be written in assembly language or in XC=BASIC as well if speed is not crucial.

Currently available extensions

How to use extensions

Just use the INCLUDE directive to include the extension into your program:

include "path/to/extension.bas"

After this point you can use all the new symbols that the extension defines.

How to write extensions

Please refer to this tutorial.

Wanted extensions

Here are some extensions that would be cool to have:

  • Music and sound FX commands
  • Commands to play SID tunes
  • Multicolor drawing
  • Library for fast character graphics and scrolling
  • Number formatting, i. e. converting numbers of different types to strings in decimal, hex, etc
  • Packing/crunching
  • Math functions