Every decode path now sets op->type for r2 analysis: - R_ANAL_OP_TYPE_NOP/TRAP: NOP, IDLE - R_ANAL_OP_TYPE_MUL: MAC operations (Type 1, 8, 9) - R_ANAL_OP_TYPE_ADD: ALU operations (Type 1, 8, 9), MODIFY - R_ANAL_OP_TYPE_MOV: register loads (Type 6, 7, 17, 18, 25, 33) - R_ANAL_OP_TYPE_LOAD/STORE: memory access (Type 3, 4, 12, 29, 32) - R_ANAL_OP_TYPE_JMP/CJMP/CALL: jumps and calls (Type 10, 10a, 19, 36) - R_ANAL_OP_TYPE_RET: RTS/RTI (Type 20) - R_ANAL_OP_TYPE_REP: DO UNTIL loops (Type 11) - R_ANAL_OP_TYPE_SHR: shift operations (Type 14, 15, 16) - R_ANAL_OP_TYPE_DIV: DIVQ/DIVS (Type 23, 24) - R_ANAL_OP_TYPE_PUSH: Push/Pop/Cache (Type 26) - R_ANAL_OP_TYPE_IO: IO/System register (Type 34, 35) - R_ANAL_OP_TYPE_SWI: SETINT/CLRINT (Type 37) op->jump set for all branch types. op->fail set for conditional jumps (next instruction). Enables: af (function analysis), pdf (function disassembly), agf (control flow graph), VV (visual graph mode). Tested: FIR and IIR functions recognized correctly.
ADSP-219x Radare2 Plugin
Native architecture plugin for disassembling ADSP-219x (including ADSP-2191) 24-bit instructions in radare2 and iaito.
Build & Install
make
make install
Requires: GCC, radare2 >= 5.8.0 (RArchPlugin API).
The Makefile also provides make test, which builds the plugin and
runs a smoke test against ../examples/isa_test.bin.
Usage
r2 -a adsp219x -b 24 firmware.bin
Validation
Compare against the assembler-verified test ROM:
r2 -a adsp219x -b 24 -q -c "pd 48" ../examples/isa_test.bin
Or run the local plugin without installing it:
make test
The test ROM (isa_test.dsp) was assembled with open21xx and
contains known opcodes for all major instruction types.
For the current verification matrix and remaining structural-only
types, see TESTING.md.
Coding Standards
This plugin follows the GNU Coding Standards for C source code. No hardcoded absolute paths in any scripts.