summaryrefslogtreecommitdiff
path: root/inc/instrDTO.h
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-04-01 20:36:31 -0400
committerbd <bdunahu@operationnull.com>2025-04-01 20:36:31 -0400
commit68324683cde10c636a4a602644f3e64d24b0e412 (patch)
treeb87195d06940fbb526785a5e4c59b76780d00b22 /inc/instrDTO.h
parent25ce77db5f0dbfe6064eb0553591f1b956bad24a (diff)
Lots of fixes and tests
Diffstat (limited to 'inc/instrDTO.h')
-rw-r--r--inc/instrDTO.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/inc/instrDTO.h b/inc/instrDTO.h
index 8249122..b6dec06 100644
--- a/inc/instrDTO.h
+++ b/inc/instrDTO.h
@@ -47,6 +47,10 @@ class InstrDTO
* @return the type of the instruction
*/
Type get_type();
+ /**
+ * @return the program counter at the time this instruction was fetched
+ */
+ unsigned int get_pc();
/**
* @param set hist key
@@ -72,11 +76,15 @@ class InstrDTO
* @param the mnemonic of the instruction
*/
void set_mnemonic(Mnemonic);
-
+
/**
* @param the type of the instruction
*/
void set_type(Type);
+ /**
+ * @param the program counter at the time this instruction was fetched
+ */
+ void set_pc(unsigned int pc);
private:
/**
@@ -100,11 +108,14 @@ class InstrDTO
* The mnemonic of the operation.
*/
Mnemonic mnemonic;
-
/**
* Type of the instruction
*/
Type type;
+ /**
+ * The PC of the instruction
+ */
+ unsigned int pc;
};
#endif /* INSTRDTO_H_INCLUDED */