X16 Reference
The Commander X16 Programmer’s Reference Guide is where I go for every kernal call and VERA register, so I wanted it next to my code rather than in a browser tab. This extension puts it inside VSCode: read it in an editor tab, search it, and look up the word under the cursor.
It’s a separate extension, BitMagic X16 Documentation. It works on its own, with or without the other BitMagic extensions.
What you can do
- Read the guide in an editor tab, in your theme’s colours, with back and forward, links between chapters, an outline of the page and find in page.
- Search it as you type: names (
CHROUT,ADDRx_L,POKE), addresses ($FFD2) or words (sprite attributes). - Look up the word under the cursor with
Ctrl+F1, and the entry opens beside your code. It knows kernal and math library routines, BASIC keywords, VERA registers, memory addresses and 65c02 instructions. With the X16 BASIC, X16 Prog8 and X16 Oscar64 extensions it knows what’s under the cursor in those languages too: BASIC’sLOADrather than the kernal’s, Prog8’scx16.VERA_CTRLand Oscar64’svera.ctrlas VERA’sCTRLregister. - Ask Copilot Chat with
#x16docs, and it answers from the guide.
Getting started
- Install BitMagic X16 Documentation from the VSCode Marketplace, or from Open VSX for VSCodium.
- Click the BitMagic butterfly in the activity bar. It’s labelled BitMagic X16.
- Click Download the X16 Reference in its X16 Reference view.
The guide is downloaded from GitHub (about 5 MB, a couple of seconds), and the view fills with its chapters. Click one to start reading.
To try a look up, open some code, put the cursor on a kernal call:
lda #'A'
jsr CHROUT ; put the cursor here and press Ctrl+F1
The reader opens beside your code at BSOUT (CHROUT is its other name), with what it does and what it takes.
Where the guide comes from
The guide belongs to the X16 community, and their repository doesn’t have a licence that lets me ship a copy. So the extension downloads it from X16Community/x16-docs the first time you need it, and keeps it. After that it works offline.
You get master by default, the newest docs, and they’re kept up to date as the community changes them. If you’re working to a particular ROM, you can choose a release instead; see Settings. Every page says which version it’s from, with a link to it.
