BitMagic.X16Remote.Build
0.1.0
dotnet add package BitMagic.X16Remote.Build --version 0.1.0
NuGet\Install-Package BitMagic.X16Remote.Build -Version 0.1.0
<PackageReference Include="BitMagic.X16Remote.Build" Version="0.1.0" />
<PackageVersion Include="BitMagic.X16Remote.Build" Version="0.1.0" />
<PackageReference Include="BitMagic.X16Remote.Build" />
paket add BitMagic.X16Remote.Build --version 0.1.0
#r "nuget: BitMagic.X16Remote.Build, 0.1.0"
#:package BitMagic.X16Remote.Build@0.1.0
#addin nuget:?package=BitMagic.X16Remote.Build&version=0.1.0
#tool nuget:?package=BitMagic.X16Remote.Build&version=0.1.0
BitMagic.X16Remote
Debug programs on a real Commander X16 over its WiFi card, and reach its SD card, from VS Code or a terminal. A small stub on the X16 talks to the PC; the PC does the rest. The X16's screen and VRAM are left alone while it's stopped, so it's made for code that needs the real machine, such as hardware the emulator doesn't have.
- VS Code: the BitMagic X16 Remote extension: source level debugging, and the SD card in the Explorer.
- Terminal: the
x16remotetool (dotnet tool install -g BitMagic.X16Remote.Tool): a console debugger, writing the SD card, and the SD card over FTP. See its README. - Documentation: bitmagic.org/remote.
plan.md has the design, the protocol and the status.
What's here
| Folder | What it is |
|---|---|
x16/stub |
The X16 side, in BitMagic .bmasm: DEBUG.PRG (the loader), DBGSTUB.BIN (the stub, in a RAM bank) and DBGTRAMP.BIN (40 bytes of interrupt handler). |
src/BitMagic.X16Remote |
The protocol, the debugger logic, file access through the stub, and the FTP server. NuGet: BitMagic.X16Remote. |
src/BitMagic.X16Remote.Build |
Builds a BitMagic project in process, with a source map. NuGet: BitMagic.X16Remote.Build. |
src/X16Remote |
The x16remote tool. NuGet: BitMagic.X16Remote.Tool, with the X16 side inside. |
src/BitMagic.X16Remote.Adapter |
The debug adapter the extension runs. |
vscode |
The VS Code extension. |
x16/sample |
Small programs to debug, and a VS Code launch configuration. |
tests |
Unit tests, end-to-end tests against the emulator, and console scripts (tests/scripts). |
Building
- The X16 side: build
x16/stub/project.jsonwith BitMagic, the x16m MCP'sbuild_project, ordotnet run --project src/X16Remote -- build x16/stub/project.json. It writesDEBUG.PRG,DBGSTUB.BINandDBGTRAMP.BINtox16/stub/app. - The PC side:
dotnet build, thendotnet test tests/BitMagic.X16Remote.Tests.
With a BitMagic checkout next to this one (../BitMagic), the projects use it; otherwise they use
BitMagic's NuGet packages, at BitMagicPackageVersion in Directory.Build.props. Add
-p:UseLocalBitMagic=false to build against the packages either way.
Trying it without an X16
The BitMagic emulator has the WiFi card too.
- Run
x16/stub/project.jsonin the emulator. ItsDEBUGHOST.TXTmakes it dial127.0.0.1:6464. - Either run
dotnet run --project src/X16Remote(add--ftpfor the SD card over FTP), or try the extension:npm installandnpm run compileinvscode/, openvscode/in VS Code and press F5 (Run Extension). It opensx16/sample; press F5 there, or open the X16 SD Card view.
To package the extension: dotnet build src/BitMagic.X16Remote.Adapter -c Release, then in vscode/
npm run vscode:prepublish and npx @vscode/vsce package.
Tests
dotnet test tests/BitMagic.X16Remote.Tests runs the unit tests. The end-to-end tests drive the debug
adapter against the stub running in the emulator, so they only run with X16REMOTE_E2E=1: start
x16/stub/project.json in the emulator first. The scripts in tests/scripts do the same through the
console (x16remote --script <file>, from that folder).
Releasing
.github/workflows/workflow.yml builds and tests every push and pull request, and builds the X16 side
with x16remote build, so it needs no X16D. A tag like v0.2.0 publishes that version:
- NuGet:
BitMagic.X16Remote,BitMagic.X16Remote.BuildandBitMagic.X16Remote.Tool. - The extension, to the VS Marketplace and Open VSX.
Publishing uses trusted publishing (OIDC) for all three stores, with NUGET_USER the only secret. The
end-to-end tests don't run in CI (the emulator needs a display), so run them before tagging.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- BitMagic.Compiler (>= 0.1.96)
- BitMagic.TemplateEngine.Compiler (>= 0.1.96)
- BitMagic.TemplateEngine.X16 (>= 0.1.96)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0 | 8 | 12/2/2026 |