/P3-Assembly

VS Code language support for the P3 Assembly programming language, the language used in the fictitious processor P3, created at IST for educational purposes.

Primary LanguageTypeScriptMIT LicenseMIT

About

VS Code addon providing language support for the P3 Assembly programming language, the language used in the fictitious P3 processor, created at IST (Instituto Superior Técnico) for educational purposes.

Features

  • Syntax highlighting (different themes will render different colors): recognizes all of P3's instruction mnemonics, labels and addressing modes;
  • Hover documentation: put your mouse over an instruction or register to see its documentation and usage
  • Constant convertion: put your mouse over a constant to see its binary, hex, decimal and ascii values.

  • In editor assemble and run: assemble your code with a click or mouse shortcut and launch the simulator. The extension saves your assembler and simulator selections

  • Variable declaration features: jump to constants/variables definition (right click > definition or command/control+click)

  • Label declaration features: jump to a label's position on the source code (on CALL, BR and JMP instructions)

Credits

  • The logo design was created by António Luciano.
  • The #constants and labels definitions for the syntax were taken from this extension.
  • Borrowed heavily from this extension.
  • Special thanks to José Neves for copy pasting all of instructions' documentation and adding in the assembler and simulator features