asmkit/x86/features/
MOVDIR64B.rs1use super::super::opcodes::*;
2use crate::core::emitter::*;
3use crate::core::operand::*;
4use crate::x86::assembler::*;
5use crate::x86::operands::*;
6
7const NOREG: Operand = Operand::new();
9
10pub trait Movdir64bEmitter<A, B> {
22 fn movdir64b(&mut self, op0: A, op1: B);
23}
24
25impl<'a> Movdir64bEmitter<Gpq, Mem> for Assembler<'a> {
26 fn movdir64b(&mut self, op0: Gpq, op1: Mem) {
27 self.emit(
28 MOVDIR64BRM,
29 op0.as_operand(),
30 op1.as_operand(),
31 &NOREG,
32 &NOREG,
33 );
34 }
35}
36
37impl<'a> Assembler<'a> {
38 #[inline]
50 pub fn movdir64b<A, B>(&mut self, op0: A, op1: B)
51 where
52 Assembler<'a>: Movdir64bEmitter<A, B>,
53 {
54 <Self as Movdir64bEmitter<A, B>>::movdir64b(self, op0, op1);
55 }
56}