Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>ca69 Assembler Language Support (6809/6309)New to Visual Studio Code? Get it now.
ca69 Assembler Language Support (6809/6309)

ca69 Assembler Language Support (6809/6309)

Carl Harris

|
1 install
| (0) | Free
Syntax highlighting, hover, completion, outline, go to definition, build tasks and problem matchers for ca69, the 6809/6309 assembler, and ld69's configuration files.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ca69 for Visual Studio Code

Language support for ca69, the 6809/6309 cross-assembler with ca65's syntax, and for the configuration files of its linker, ld69.

Features

  • Syntax highlighting of ca69 sources: the 6809's and the 6309's mnemonics (each CPU's in its own scope, so a theme can show 6309 instructions apart), directives, functions and operators written as words, labels (name:, @cheap:, : and :+/:-), constants, macros, registers in operands, the marks that force an operand's size (<, >, <<, dp:, ext:, b5:, b8:, b16:), numbers, characters and strings. ca65's directives that ca69 doesn't support show as errors.
  • Syntax highlighting of ld69's configuration files: sections, the memory areas, segments, symbols and files they describe, attributes and their values, %O and %S.
  • Comment toggling (; in sources, # in configurations), bracket matching, and folding of .proc, .scope, .macro, .repeat, .struct, .union, .enum and .if blocks.
  • Hover: a directive's form and description, a mnemonic's addressing modes and opcodes, the line that defines a symbol, and in a configuration, what a section or attribute is.
  • Completion of directives, mnemonics, macros and the source's symbols, and of a configuration's sections, attributes and values.
  • An outline of the labels, constants, scopes, structures, macros and segment changes of a source, and of a configuration's sections and entries.
  • Go to definition of a symbol, in the source, the files it includes (found beside it, or in the directories of ca69.includeDirs) or, for an imported name, the workspace's source that exports it; of an .include's file; and in a configuration, of a segment's memory area.
  • Build tasks that run cl69, ca69's driver: assembling the source being edited, or building it with each linker configuration in the workspace; and a cl69 task type for tasks.json. The settings ca69.toolsPath and ca69.buildArgs say where cl69 is and what options every task gives it.
  • Problem matchers, $cl69, $ca69, $ld69 and $tr69, that put the tools' errors and warnings in the Problems view.

Files

Sources are .s, .s69 and .inc files. Configurations are .ld69 files, and .cfg files that start, after any comments, with a MEMORY, SEGMENTS, FILES, SYMBOLS or FEATURES section. The setting ca69.detectLinkerConfigs turns off that look at .cfg files. For other names, map them in files.associations:

"files.associations": {
    "*.asm": "ca69",
    "*.lnk": "ld69-config"
}

Building with a task

Run Build Task in a source offers to assemble it with cl69 -c, and to build it with cl69 -C and each configuration in the workspace. A task in .vscode/tasks.json builds more:

{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "monitor",
            "type": "cl69",
            "file": "monitor.s",
            "config": "board.cfg",
            "args": ["-o", "monitor.bin", "acia.s"],
            "group": "build"
        }
    ]
}

A task of another kind, one that runs make say, takes one of the problem matchers, "problemMatcher": "$cl69": they all read the same messages, so with two, each message would be listed twice.

ca69's user's manual, in its chapter "Editing in VS Code", says more.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft