Skip to content
altstrument

pi32v2-isa

Tool for FM-1 and SMK-37 Pro / Elite (M-VAVE)

Open reference for the pi32v2 instruction set of JieLi's AC791N chip, with an instruction table, assembler, linker, disassembler, objdump and LLVM backend generators that build FM-1 firmware without JieLi's closed tools.

by Julius Vitkauskas (jvitkauskas)

ActiveSource: openMIT-0
M-VAVE FM-1 FM synthesizer, top view
Photo: M-VAVE, manufacturer product image, via m-vave.com
Distribution
Build from source yourself
License notes
The code is MIT-0 (MIT No Attribution), which is not in the schema's licence list, so MIT is entered as the nearest value. Documentation and the instruction table are CC0-1.0, and each file's licence is set by its SPDX header or REUSE.toml. The rustc patch is MIT OR Apache-2.0, and the LLVM fork is Apache-2.0 with LLVM exceptions.
Source
github.com https://github.com/jvitkauskas/pi32v2-isa

Description

The instruction table lists every form JieLi's objdump decodes, each confirmed against JieLi's toolchain, and the README says 1,079 of 1,165 forms are also confirmed on the chip. The Python assembler, linker and objdump write and read the same files as JieLi's, and FM-1 firmwares build byte for byte the same with them. An LLVM toolchain in separate forks builds m-bootloader, fm1-base, Felucca and SLOOP from source, and a proof-of-concept Rust example blinks the FM-1's screen. Hardware test runs are stored under hw/. The README says no JieLi code, binaries or firmware are in the repository, and that JieLi's toolchain is only downloaded to check against. The first target is the FM-1 core, and the SMK-37 Pro uses the same chip family.

Install notes

Python 3.11 or newer with no dependencies: run python3 -m pi32v2isa check, disasm, as, ld or objdump. The oracle commands download JieLi's toolchain for comparison. Docs/TOOLCHAIN.md covers building FM-1 firmware with the LLVM toolchain, and the example firmware is installed as any other FM-1 build, with the usual risk.

Version history

pi32v2-isa version history
VersionDateNotes
main @ 058b89b2026-11-21
No tagged releases; this is the latest commit, a merge of two pull requests. One makes the LLVM tools generate the hardware instruction forms that the LLVM assembler warns about, and the other makes the runtime's __sync_* functions use only the low bytes of a sub-word operand.

Back to FM-1