This covers V1-V3 of the ISA. V5 changed to RISC-V which would be supported by a RISC-V Ghidra extension.
Currently only instructions I've seen used in practice are supported. PRs accepted of course.
ISA documentation can be found at http://www.andestech.com/en/products-solutions/product-documentation/
Of interest are:
- "AndeStar ISA Manual" (AndeStar_ISA_UM025_V2.2.pdf)
- defines ISA encoding and semantics
- "AndeStar SPA V3 Manual" (AndeStar_SPA_V3_UM072_V1.8.pdf)
- defines System Registers
Ensure GHIDRA_INSTALL_DIR and JAVA_HOME environment variables are set, if needed.
cd ghidra/Ghidra/Processors
git clone https://github.com/shuffle2/ghidra-AndeStar AndeStar
cd AndeStar
gradleThe generated .zip in dist should then be extracted to ${GHIDRA_INSTALL_DIR}/Ghidra/Processors.
gradle && powershell -command "& { expand-archive -Force dist\ghidra_11.2_DEV_20240604_AndeStar.zip $Env:GHIDRA_INSTALL_DIR\Ghidra\Processors }"
%GHIDRA_INSTALL_DIR%\ghidraRun.batto test sleigh
%GHIDRA_INSTALL_DIR%\support\sleigh C:\src\ghidra\Ghidra\Processors\AndeStar\data\languages\AndeStar_le.slaspec