summaryrefslogtreecommitdiff
path: root/inc/instrDTO.h
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-03-29 12:30:54 -0400
committerbd <bdunahu@operationnull.com>2025-03-29 12:30:54 -0400
commit9793bf119cc6314e264bdfc9e98bc27c81db0adb (patch)
tree2c8159f9b9ae655cc810e705834a45938a63c624 /inc/instrDTO.h
parentbc47d9131869b1f072e21d9cb61746d14bf30751 (diff)
Add implementation functions for checking out a register.
Diffstat (limited to 'inc/instrDTO.h')
-rw-r--r--inc/instrDTO.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/inc/instrDTO.h b/inc/instrDTO.h
index 2a6ab1f..77a223e 100644
--- a/inc/instrDTO.h
+++ b/inc/instrDTO.h
@@ -1,9 +1,10 @@
#ifndef INSTRDTO_H
#define INSTRDTO_H
-#include <string>
+#include "accessor.h"
+#include "instr.h"
#include <functional>
+#include <string>
#include <unordered_map>
-#include "accessor.h"
class InstrDTO
{
@@ -39,9 +40,9 @@ class InstrDTO
*/
signed int get_s3();
/**
- * @return the string representation of oper.
+ * @return the mnemonic of the instruction
*/
- std::string get_oper_name();
+ Mnemonic get_mnemonic();
/**
* @param set hist key
@@ -63,6 +64,10 @@ class InstrDTO
* @param s3
*/
void set_s3(signed int);
+ /**
+ * @param the mnemonic of the instruction
+ */
+ void set_mnemonic(Mnemonic);
private:
/**
@@ -82,10 +87,10 @@ class InstrDTO
signed int s1;
signed int s2;
signed int s3;
- /**
- * The operation to be conducted during the execute phase.
- */
- std::function<void()> instr;
+ /**
+ * The mnemonic of the operation.
+ */
+ Mnemonic mnemonic;
};
#endif /* INSTRDTO_H_INCLUDED */