diff options
Diffstat (limited to 'inc/instr.h')
-rw-r--r-- | inc/instr.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/inc/instr.h b/inc/instr.h index 98a1f0e..0c49a79 100644 --- a/inc/instr.h +++ b/inc/instr.h @@ -61,9 +61,20 @@ enum Mnemonic { NOP, }; +enum FieldType { + SI_INT, + R_VECT, + I_VECT, +}; + namespace instr { extern const std::unordered_map<unsigned int, Mnemonic> mnemonic_map; +/** + * @param a mnemonic + * @return an enum representing the types of the decoded instruction fields. + */ +FieldType get_field_types(Mnemonic m); } // namespace instr #endif /* INSTR_H_INCLUDED */ |