Assembly
A Rust library for decoding and encoding assembly of various architectures.
Supported architectures currently include:
6502
Cargo Features
encode
allows for encoding of instructionsdecode
allows for decoding of instructions
In addition every architecture has a feature. This allows you to only enable the architectures you need.
For example 6502
support would be enabled by adding this to your Cargo.toml
:
[]
= "0.1"
= ["6502"]
Example
let assembly = ;
let decoder = _6502 decoder;
for instruction in decoder