/// Convenience function (for tests and decoding cases) to generate a displacement with a data
/// register and scale.
Convenience function (for tests and decoding cases) to generate a displacement with a data
register and scale.
Convenience function ( for tests and decoding cases ) to generate a displacement with a data register and scale .
pub fn dr_disp_scale(dr: DataRegister, disp: i32, scale: u8) -> Displacement {
    Displacement {
        base_displacement: disp,
        outer_displacement: 0,
        indexer: Indexer::DR(dr, scale),
        indirection: MemoryIndirection::NoIndirection,
    }
}
pub fn dr_disp_scale ( dr : DataRegister , disp : i32 , scale : u8 ) -> Displacement { Displacement { base_displacement : disp , outer_displacement : 0 , indexer : Indexer :: DR ( dr , scale ) , indirection : MemoryIndirection :: NoIndirection , } }
Convenience function (for tests and decoding cases) to generate a displacement with a data
register and scale.
Convenience function ( for tests and decoding cases ) to generate a displacement with a data register and scale .
dr
DataRegister
disp
i32
scale
u8