Repository navigation
Releases
Releases · mecilh/asmlight
Added FPGA supports in 0.5.0
Added some other languages support, and updated the code to meet obsidian's plugin standards
First release 0.4.0
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 -dand GDBdisassembleoutput, 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
- Create
.obsidian/plugins/asmlight/in your vault. - Download
main.js,manifest.jsonandstyles.cssfrom the assets below into that folder. - Enable Asmlight under Settings → Community plugins.
Examples and the full syntax are in the README.