write_x86_64 0.2.0

Crate to help you write x86_64 assembly code
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::reg::Sizes;

/// Trait representing registers (used by Operand<R>)
pub trait Reg {
    /// Write register in file
    fn write_in(&self, file: &mut std::fs::File) -> std::io::Result<()>;

    /// Register size
    const SIZE: Sizes;
}

/// Trait for structures that can be written
pub trait Writable {
    /// Write structure in the file
    fn write_in(&self, file: &mut std::fs::File) -> std::io::Result<()>;
}