summaryrefslogtreecommitdiff
path: root/inc/stage.h
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-03-30 19:42:34 -0400
committerbd <bdunahu@operationnull.com>2025-03-30 19:42:34 -0400
commitebeb29d1b87c533c1e80e86ceed9ddc40e4d2cb2 (patch)
tree6fb10621af07438e01391f7cb734023e3aaf691a /inc/stage.h
parent36dabe6183af98b2e3f6d0316436dc3affc3d986 (diff)
Add tests for EX
Diffstat (limited to 'inc/stage.h')
-rw-r--r--inc/stage.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/inc/stage.h b/inc/stage.h
index 56a3589..d1b6ee1 100644
--- a/inc/stage.h
+++ b/inc/stage.h
@@ -40,6 +40,16 @@ class Stage
*/
virtual InstrDTO *advance(Response p);
+ /* The following methods are made public so that they may be tested, and are
+ * not to be called from outside classes during standard execution.
+ */
+
+ /**
+ * Gets the bit in the condition code register correspondng to `c`.
+ * @param the condition code to retrieve,
+ */
+ bool get_condition(CC c);
+
protected:
/**
* The function expected to do the majority of the work.
@@ -54,11 +64,6 @@ class Stage
*/
void set_condition(CC c, bool v);
/**
- * Gets the bit in the condition code register correspondng to `c`.
- * @param the condition code to retrieve,
- */
- bool get_condition(CC c);
- /**
* Helper for `check_out`.
* Returns true if r are not checked out, false otherwise.
* @param a list of register numbers.