doinkythederp / nasm-language-support

Visual Studio Code extension offering language features for NASM Assembly
https://marketplace.visualstudio.com/items?itemName=doinkythederp.nasm-language-support
ISC License
7 stars 2 forks source link
assembly diagnostics extension language-support nasm syntax-highlighting typescript visual-studio-code

NASM Language Support

Language features for NASM Assembly.

Features

This extension provides syntax highlighting and diagnostics for assembly files (.asm, .nasm, .s). Your system's nasm executable is used to detect compile-time errors and warnings such as invalid syntax or likely incorrect code.

This extension does provide:

This extension does not provide:

Demo featuring syntax highlighting and error detection Shown above: NASM Language Support + Error Lens, Theme: Github Dark Default

Requirements

While syntax highlighting can always be used, you must have a nasm binary referenced in your PATH environment variable to view code diagnostics.

Getting a NASM binary on Unix-like systems

Your operating system might have a nasm package.

For example:

Downloading a NASM binary

You can also download NASM from their website. Find a link to the latest version and download the executable for your platform. Then, add it to a folder that's referenced in your PATH, such as /usr/local/bin.

Extension Setting

This extension contributes the following settings:

[^1]: You may need to add set the nasm.nasmPath option to /opt/homebrew/bin/nasm for the extension to work properly.