NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.

PASM Syntax Highlighting

From Texas Instruments Wiki
Jump to: navigation, search

Content is no longer maintained and is being kept for reference only!
For the most up to date PRU-ICSS collateral click here

Overview[edit]

This page describes how to enable syntax highlighting support for PASM (PRU assembly)on popular editors like Notepad++ and Textpad.

How to get support for Vim[edit]

There is a plugin available here: https://github.com/batmanaod/pruss-vim

Note that by default, only files with the extensions .pru, .hpru, or .pasm are treated as PASM syntax files (filetype=pru). Edit the ftdetect/pruss.vim file to change this.

How to get support for Notepad++[edit]

Notepad++ (http://notepad-plus.sourceforge.net/uk/site.htm) is a light weight multi-tab free source editor for Windows. Below are steps to enable PASM syntax highlighting in Notepad++ using User Defined Language option.

  • Install Notepad++
  • Open  %APPDATA%\Notepad++ folder via Start->Run
  • Copy userDefineLang.xml from http://processors.wiki.ti.com/images/3/39/UserDefineLang.zip to above folder
  • Above XML assumes extensions .p for source and .hp for header – custom extensions can be added in XML in "ext" section
  • Select Language->PASM after restarting Notepad++ to enable syntax highlighting
  • To make Notepad++ by default open PASM sources and apply syntax highlighting, add these extensions to Settings->FileAssociation->customize


How to get support for Textpad[edit]

  • Extract pasm.syn http://processors.wiki.ti.com/images/e/ea/Pasm.zip into the SAMPLES sub-folder of TextPad installation folder
  • Create the document class (In TextPad 4.2 and later, this can be done using the "New Document Class" wizard on the "Configure" menu)
  • Specify which files are members of that class. (*.p,*.hp,*.pdsp,*.pasm)
  • Specify which syntax definition file is required. (Point to pasm.syn in the selection window)



How to get support for Sublime Text 3[edit]

  • Browse to https://github.com/justinpearson/pasm-sublime-text-syntax-highlight
  • Put the file pasm.sublime-syntax in the place where Sublime Text looks for syntax definitions:
  • Mac: /Users/justin/Library/Application Support/Sublime Text 3/Packages/User/
  • Linux: ~/.config/sublime-text-3/Packages/User/
  • Restart Sublime Text.
  • In the lower-right language selection, you should see 'pasm'


E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article PASM Syntax Highlighting here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article PASM Syntax Highlighting here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article PASM Syntax Highlighting here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article PASM Syntax Highlighting here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article PASM Syntax Highlighting here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article PASM Syntax Highlighting here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article PASM Syntax Highlighting here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article PASM Syntax Highlighting here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article PASM Syntax Highlighting here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity