SupportIf you like ASM-Code-Lens please consider supporting it. ![]() ![]() ASM Code Lens'ASM Code Lens' is a language server extension for Visual Studio Code for assembler files. It provides support for:
Please refer to the "Feature Contributions" tab to see how to enable/disable certain features InstallationInstall through Visual Studio Code Marketplace. The extension is called "ASM Code Lens". It supports the following assembler file suffixes by default: .asm, .s, .inc, .a80, .list, .lis, .z80. Others are configurable. (Configuration not possible for syntax highlighting.) Hexadecimal CalculatorA view in the sidebar of the explorer and in debug mode. It adds a decimal and hexadecimal calculator to vscode. It always shows 2 columns: decimal and hexadecimal. If you enter a number in one column it is automatically converted to the other type. This way it is easily possible to mix calculations between decimal and hexadecimal. The calculator allows the basic integer calculations:
Outline ViewAn outline view of the assembly can be shown like this: "ASM Code Lens" uses some heuristics to tell what labels are data, const or code. So be aware that it's decision might be wrong sometimes. Note: The outline view also supports sjasmplus MODULE information. Problem MatcherFor the sjasmplus assembler there is a problem matcher included to ease navigation to compile errors. You can use it simply by adding this to your tasks.json:
Hovers in Debug Modevscode turns the normal hovers off if in debug mode. To make them visible press the "ALT" key while hovering. Syntax highlighting in Markdown code blocksAssembler syntax highlighting can also be used within Markdown documents.
Just add Here is an example:
Which results in the following highlighting:
Known Issues
License and AcknowledgementsASM-Code-Lens is licensed under the MIT license. This extension made use of 3 other packages:
I also included the grammar for syntax highlighting from Martin Bórik's vscode extension z80-macroasm-vscode because I got problems when running both extensions at the same time and I could not turn off features selectively. I.e. I copied the files language.configuration.json and z80-macroasm.tmLanguage.json. The z80-macroasm-vscode extension itself was forked from Imanol Barriuso's vscode extension z80asm-vscode. MIT license, copyright (c) 2016 Imanol Barriuso (Imanolea). Many thanks to the authors. I also would like to thank these authors for contributions:
|