Crate hexpatch_keystone

Source
Expand description

Keystone Assembler Engine (www.keystone-engine.org)
By Nguyen Anh Quynh aquynh@gmail.com, 2016
Rust bindings by Remco Verhoef remco@dutchcoders.io, 2016

extern crate hexpatch_keystone;
use hexpatch_keystone::{Keystone, Arch, Mode, OptionType, OptionValue};

fn main() {
    let engine = Keystone::new(Arch::X86, Mode::MODE_32)
        .expect("Could not initialize Keystone engine");
    engine.option(OptionType::SYNTAX, OptionValue::SYNTAX_NASM)
        .expect("Could not set option to nasm syntax");
    let result = engine.asm("mov ah, 0x80".to_string(), 0)
        .expect("Could not assemble");
}

Structs§

AsmResult
Error
Keystone
Mode
OptionValue

Enums§

Arch
OptionType

Constants§

API_MAJOR
API_MINOR

Functions§

arch_supported
Return tuple (major, minor) API version numbers.
bindings_version
error_msg
version
Return tuple (major, minor) API version numbers.

Type Aliases§

ks_handle