3 ms·
Ghidra uses SLEIGH for this purpose https://fossies.org/linux/ghidra/GhidraDocs/languages/html/sleigh.html https://fossies.org/linux/ghidra/GhidraDocs/languages
by Retr0id 3y ago
Ghidra uses SLEIGH for this purpose https://fossies.org/linux/ghidra/GhidraDocs/languages/html/sleigh.html https://fossies.org/linux/ghidra/GhidraDocs/languages/html/s...
> A Language for Rapid Processor Specification
From a SLEIGH description, the assembler, disassembler, and even decompiler can be synthesized.
It's a DSL not a database schema, but fundamentally it's the same idea.
Here's their definition of the 6502: https://github.com/NationalSecurityAgency/ghidra/blob/cae9190c13709fbd889edbe8f46d28c99df0a588/Ghidra/Processors/6502/data/languages/6502.slaspec https://github.com/NationalSecurityAgency/ghidra/blob/cae919...