asm 0.1.0

A Rust library for decoding and encoding assembly of various architectures
Documentation

Assembly

A Rust library for decoding and encoding assembly of various architectures.

Supported architectures currently include:

  • 6502

Cargo Features

  • encode allows for encoding of instructions
  • decode 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:

[dependencies.asm]
version = "0.1"
features = ["6502"]

Example

let assembly = [...];

let decoder = asm::Architecture::_6502::decoder(&assembly);

for instruction in decoder {
    println!("{:?}", instruction);
}

License