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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BitMagic.X16Remote.Build" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BitMagic.X16Remote.Build" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="BitMagic.X16Remote.Build" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add BitMagic.X16Remote.Build --version 0.1.0
                    
#r "nuget: BitMagic.X16Remote.Build, 0.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package BitMagic.X16Remote.Build@0.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=BitMagic.X16Remote.Build&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=BitMagic.X16Remote.Build&version=0.1.0
                    
Install as a Cake Tool

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 x16remote tool (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.json with BitMagic, the x16m MCP's build_project, or dotnet run --project src/X16Remote -- build x16/stub/project.json. It writes DEBUG.PRG, DBGSTUB.BIN and DBGTRAMP.BIN to x16/stub/app.
  • The PC side: dotnet build, then dotnet 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.

  1. Run x16/stub/project.json in the emulator. Its DEBUGHOST.TXT makes it dial 127.0.0.1:6464.
  2. Either run dotnet run --project src/X16Remote (add --ftp for the SD card over FTP), or try the extension: npm install and npm run compile in vscode/, open vscode/ in VS Code and press F5 (Run Extension). It opens x16/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.Build and BitMagic.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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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