Dr. Christian Giessen 1c28f027b8 Rewrite Type 9/9a decode: five sub-encodings
Type 9a (register-file, unconditional):
  - XREG=bits11-8 (4 bits), YREG=bits3-0 (4 bits), both reg0[]
  - Discriminated by bits5-4 = 10
  - Verified: ar=mx0 xor my0, mr=ax0*ay0(ss)

Type 9 standard (conditional):
  - XOP=bits10-8, YOP=bits12-11, COND=bits3-0
  - bits7-4 = 0000 required
  - Verified: all ALU ops, conditional MAC

Type 9 YOP=0:
  - bits12-11 = 11, bits7-4 = 0000
  - Renders f(xop, 0)

Type 9 MAC squaring:
  - bits12-11 = 00, bit4 = 1, bits7-5 = 000
  - Renders f(xop^2)

Type 9 constant YOP:
  - CC=bits7-6, BO=bits5-4
  - Renders f(xop, const)

Tested with open21xx assembler output for 15 instructions.
Full regression: isa_test, fir, iir unchanged.
2026-04-22 20:01:08 +00:00

ADSP-219x Reverse Engineering Toolkit

Radare2 architecture plugin and reference materials for reverse engineering ADSP-2191 firmware.

Contents

r2plugin/       Native radare2 arch plugin (C, GNU style)
examples/       ADSP-2191 assembly examples (FIR, IIR, FFT, Viterbi)
                + assembler-verified ISA test ROM
testrom/        Test ROM generator for plugin validation
docs/           Architecture reference, opcode tables, walkthrough guides

Quick Start

cd r2plugin && make && make install
r2 -a adsp219x -b 24 examples/isa_test.bin
[0x00000000]> pd 48

Requirements

  • Radare2 >= 5.8.0 (RArchPlugin API)
  • GCC

Plugin Status

Currently decodes: NOP, IDLE, Type 1 (multifunction), Type 3 (direct memory), Type 4 (compute + memory), Type 6/7 (immediate loads), Type 10/10a (jump/call), Type 17 (reg move), Type 20 (RTS/RTI).

Work in progress: Type 9/9a (standalone compute), Type 11 (DO UNTIL), Type 15 (shift), Type 18 (mode control), Type 25 (saturate).

Assembler

The examples were assembled with open21xx, an open-source assembler/linker for ADSP-218x/219x. Build instructions are in the open21xx README. The resulting ELF is converted to raw binary with dd (extract the int_pm section).

License

Plugin code: LGPL-3.0-only. Example code from Analog Devices application notes. Documentation extracts from the ADSP-219x DSP Instruction Set Reference.

Description
ADSP-2191 Reverse Engineering - Disassembler, radare2 plugin, and analysis tools
Readme 2.1 MiB
Languages
C 50.4%
Python 48.6%
Makefile 1%