etk_asm/ops/
types.rs

1use etk_ops::Immediates;
2
3use super::imm::Imm;
4
5use std::fmt::Debug;
6
7/// Marker type for instructions which may accept labels, variables, or constants
8/// as arguments.
9#[derive(Debug, Clone, Eq, PartialEq)]
10pub enum Abstract {}
11
12impl Immediates for Abstract {
13    type ImmediateRef = Imm;
14    type Immediate = Imm;
15
16    type P1 = Imm;
17    type P2 = Imm;
18    type P3 = Imm;
19    type P4 = Imm;
20    type P5 = Imm;
21    type P6 = Imm;
22    type P7 = Imm;
23    type P8 = Imm;
24    type P9 = Imm;
25    type P10 = Imm;
26    type P11 = Imm;
27    type P12 = Imm;
28    type P13 = Imm;
29    type P14 = Imm;
30    type P15 = Imm;
31    type P16 = Imm;
32    type P17 = Imm;
33    type P18 = Imm;
34    type P19 = Imm;
35    type P20 = Imm;
36    type P21 = Imm;
37    type P22 = Imm;
38    type P23 = Imm;
39    type P24 = Imm;
40    type P25 = Imm;
41    type P26 = Imm;
42    type P27 = Imm;
43    type P28 = Imm;
44    type P29 = Imm;
45    type P30 = Imm;
46    type P31 = Imm;
47    type P32 = Imm;
48}