From bc47d9131869b1f072e21d9cb61746d14bf30751 Mon Sep 17 00:00:00 2001 From: bd Date: Sat, 29 Mar 2025 02:36:38 -0400 Subject: get_instr_fields return mnemonic rather than opcode and type --- inc/instr.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'inc/instr.h') diff --git a/inc/instr.h b/inc/instr.h index 98ecf1d..08b4fd0 100644 --- a/inc/instr.h +++ b/inc/instr.h @@ -2,7 +2,7 @@ #define INSTR_H #include #include -#include +#include enum Mnemonic { ADD, @@ -42,15 +42,14 @@ enum Mnemonic { BOF, PUSH, POP, + NOP, }; -std::ostream &operator<<(std::ostream &os, Mnemonic a); - namespace instr { // clang-format off - extern const std::map mnemonic_map; - extern const std::map> instr_map; + extern const std::unordered_map mnemonic_map; + extern const std::unordered_map> instr_map; // clang-format on } // namespace instr -- cgit v1.2.3