aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/insn/dec.rs
blob: 1377d1ccdbffd12de2c6d89291f331e08dcefb72 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::Dec;
use crate::{Asm, Reg32, Reg64};

impl Dec<Reg64> for Asm {
    fn dec(&mut self, op1: Reg64) {
        self.encode_r(0xff, 1, op1);
    }
}

impl Dec<Reg32> for Asm {
    fn dec(&mut self, op1: Reg32) {
        self.encode_r(0xff, 1, op1);
    }
}