Add support for address-aligned-mode

This commit is contained in:
2023-12-11 18:52:16 +01:00
parent beaa224252
commit d519d9a37b
4 changed files with 139 additions and 40 deletions

View File

@@ -22,39 +22,44 @@ pub enum Instruction {
src0: File,
src1: File,
dst: File,
aam: bool,
},
MUL {
src0: File,
src1: File,
dst: File,
aam: bool,
},
MAC {
src0: File,
src1: File,
src2: File,
dst: File,
aam: bool,
},
MAD {
src0: File,
src1: File,
src2: File,
dst: File,
aam: bool,
},
}
impl Instruction {
pub fn supported_source(&self, src: File) -> bool {
true
todo!()
}
pub fn supported_destination(&self, src: File) -> bool {
true
todo!()
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub enum File {
Grf { index: u8 },
GrfA { index: u8 },
GrfB { index: u8 },
SrfM { index: u8 },
SrfA { index: u8 },
Bank,