# ADSP-219x Radare2 Plugin

This plugin adds support for the ADSP-219x architecture to radare2 and iaito.

## Prerequisites

- GCC
- Radare2 5.8.0+ (uses the `RArchPlugin` API)
- Python 3 (for test ROM generation)

## Installation

```bash
cd r2plugin
make
make install
```

To uninstall:
```bash
make uninstall
```

## Usage

Load a binary file specifying the architecture and bits:

```bash
r2 -a adsp219x -b 24 firmware.bin
```

## Maintenance & Testing

A test ROM generator is provided in the `testrom/` directory to verify instruction decoding accuracy.

```bash
cd testrom
python3 gen_isa_test.py
r2 -a adsp219x -b 24 -q -c "pd 42" test_roms/isa_test.bin
```

## Coding Standards

This project follows the **GNU Coding Standards** for C code and avoids hardcoded absolute paths in scripts.
