Skip to content

A bundle for TextMate/Sublime Text providing syntax highlighting for x86 assembly code.

License

Notifications You must be signed in to change notification settings

evandroforks/X86Assembly

 
 

Repository files navigation

About

This is a TextMate/Sublime/VS Code/Atom bundle providing language support for x86_64 assembly language in a variety of dialects (nasm/yasm primarily, but could highlight tasm/gas to some extent).

Installation

By Package Control

  1. Download & Install Sublime Text 3 (https://www.sublimetext.com/3)
  2. Go to the menu Tools -> Install Package Control, then, wait few seconds until the installation finishes up
  3. Now, Go to the menu Preferences -> Package Control
  4. Type Add Channel on the opened quick panel and press Enter
  5. Then, input the following address and press Enter
    https://raw.githubusercontent.com/evandrocoan/StudioChannel/master/channel.json
    
  6. Go to the menu Tools -> Command Palette... (Ctrl+Shift+P)
  7. Type Preferences: Package Control Settings – User on the opened quick panel and press Enter
  8. Then, find the following setting on your Package Control.sublime-settings file:
    "channels":
    [
        "https://packagecontrol.io/channel_v3.json",
        "https://raw.githubusercontent.com/evandrocoan/StudioChannel/master/channel.json",
    ],
  9. And, change it to the following, i.e., put the https://raw.githubusercontent... line as first:
    "channels":
    [
        "https://raw.githubusercontent.com/evandrocoan/StudioChannel/master/channel.json",
        "https://packagecontrol.io/channel_v3.json",
    ],
    • The https://raw.githubusercontent... line must to be added before the https://packagecontrol.io... one, otherwise, you will not install this forked version of the package, but the original available on the Package Control default channel https://packagecontrol.io...
  10. Now, go to the menu Preferences -> Package Control
  11. Type Install Package on the opened quick panel and press Enter
  12. Then, search for X86Assembly and press Enter

See also:

  1. ITE - Integrated Toolset Environment
  2. Package control docs for details.

Features

  • Basic support for NASM/YASM/TASM/GAS syntaxes
  • Most up-to-date instruction sets:
    • Legacy/undocumented registers and instructions
    • FPU/MMX/3DNow!
    • SSE/SSE2/(S)SSE3/SSE4/SSE4.1/SSE4.2/SSE4.a
    • AVX/AVX2/AVX512, including pseudo-ops
    • AES-NI/SHA
    • VMX/SMX/NPX/SGX
    • other AMD/Cyrix/VIA and planned future Intel extensions

Source code

The latest version of this package should be available on GitHub.

To compile the yaml sources to tmLanguage, you'll need PackageDev.

Contributors

YASM tests are provided by yasm-regression project.

Examples

  • Sublime Text with Monokai Extended Bright color scheme Sublime Text with Monokai Extended Bright color scheme
  • Atom with One Dark syntax theme Atom with One Dark syntax theme
  • Visual Studio Code with default Dark color theme Visual Studio Code with default Dark color theme