Skip to content

Releases

Added FPGA supports in 0.5.0

Choose a tag to compare

@mecilh mecilh released this 15 Oct 13:18
63424a6

Added some other languages support, and updated the code to meet obsidian's plugin standards

First release 0.4.0

Choose a tag to compare

@mecilh mecilh released this 14 Oct 19:57
ae9180c

Asmlight 0.4.0: first public release

Asmlight is an Obsidian plugin for embedded and low-level notes. It highlights assembly and the files around it, explains what you hover over, and turns short text descriptions into register and memory map diagrams.

Languages

  • RISC-V (riscv, rv32, rv64): base ISA plus M, A, F, D, C, Zicsr, Zba/Zbb, common V, pseudo-instructions and all standard CSRs
  • ARM AArch32 / Thumb (arm, thumb): including VFP/NEON and Cortex-M special registers
  • AArch64 (arm64, aarch64): ARMv8-A, FP/SIMD, LSE atomics, EL1–EL3 system registers
  • Disassembly (objdump, disasm): objdump -d and GDB disassemble output, with the ISA detected automatically
  • Makefile, GNU ld linker scripts and Devicetree

Hover cards

Hover an instruction, register, CSR or keyword to see what it does, along with its syntax and pseudo-code. ARM condition and flag suffixes are decoded. Number literals (0xFFFFF000, 0b1010, 0x4000000UL) show their value in every base, in C blocks too.

Diagrams

  • Register diagrams: describe a register's bitfields in a few lines to get a drawing, and optionally decode a value.
  • Memory maps: lay out regions, peripherals and vector tables by address, with gaps and nesting shown.

It works in Reading view, Live Preview and Source mode, on desktop and mobile, and uses your theme's colors.

Install

  1. Create .obsidian/plugins/asmlight/ in your vault.
  2. Download main.js, manifest.json and styles.css from the assets below into that folder.
  3. Enable Asmlight under Settings → Community plugins.

Examples and the full syntax are in the README.