1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::prelude::*;
impl Add<Reg64, Reg64> for Asm {
fn add(&mut self, op1: Reg64, op2: Reg64) {
self.encode_rr(0x01, op1, op2);
}
}
impl Add<Reg32, Reg32> for Asm {
fn add(&mut self, op1: Reg32, op2: Reg32) {
self.encode_rr(0x01, op1, op2);
}
}