aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/insn.rs
blob: be2e6894f86f8bce7f4643b8ee190dafc10c34ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
mod add;
mod dec;
mod jmp;
mod jz;
mod mov;
mod ret;
mod test;

pub trait Add<T, U> {
    fn add(&mut self, op1: T, op2: U);
}

pub trait Dec<T> {
    fn dec(&mut self, op1: T);
}

pub trait Jmp<T> {
    fn jmp(&mut self, op1: T);
}

pub trait Jz<T> {
    fn jz(&mut self, op1: T);
}

pub trait Mov<T, U> {
    fn mov(&mut self, op1: T, op2: U);
}

pub trait Test<T, U> {
    fn test(&mut self, op1: T, op2: U);
}