Examples
The BitMagic.Examples repository has a set of small projects, each showing a different BitMagic feature. Most are ready to go: open the folder in VSCode and press F5. A few need some setup first, so check the example’s page.
Clone it with submodules, as some examples pull in other repositories:
git clone --recurse-submodules https://github.com/Yazwh0/BitMagic.Examples.git
Hello World
An over engineered Hello World! Five different ways to print HELLO WORLD!, each using a different BitMagic feature.
Data Generation
Uses C# to generate sine tables at compile time, then uses them to move a sprite around the screen.
NuGet
References a NuGet package from a .bmasm file, using ImageSharp to convert an image to the X16 palette as part of the build.
FX Cache
How to use VERA’s FX cache to copy VRAM four bytes at a time.
Command Line POC
A proof of concept for passing parameters to a machine code program from the BASIC prompt, demonstrated with a minimal cat.
ROM
How to write your own ROM code with BitMagic, and how to debug the official X16Community ROM.
cc65 Library
Imports a library built with cc65 into a BitMagic project, using ZSMKit to play music.
ca65 Application
A simple application written in ca65 and debugged in BitMagic using the ld65 debug file.
Dream Tracker
A much larger ca65 application: Tim Soderstrom’s Dream Tracker, debugged in BitMagic.
BitBench
A proof of concept task switching and text based windowing system.