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§
Enums§
Constants§
Functions§
- arch_
supported - Return tuple
(major, minor)
API version numbers. - bindings_
version - error_
msg - version
- Return tuple
(major, minor)
API version numbers.