summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-03-30 12:33:25 -0400
committerbd <bdunahu@operationnull.com>2025-03-30 12:33:25 -0400
commita16e2a4922349759028b0e7383392255c98d863a (patch)
treeb91dd3c1fce4d9b0ed0527f57125d00d02fceb12
parentd8e33f871bfb8dbfbad3fa0d7e1e13af5bcde830 (diff)
Setting condition code register, overflow guard
-rw-r--r--inc/definitions.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/inc/definitions.h b/inc/definitions.h
index 3238a8b..c81c4e3 100644
--- a/inc/definitions.h
+++ b/inc/definitions.h
@@ -77,6 +77,12 @@
#define OPCODE_SIZE 4
/**
+ * The maximum value an integer can hold.
+ * The minimum is always this number plus one negated.
+ */
+#define MAX_INT 2147483647
+
+/**
* Return the N least-significant bits from integer K using a bit mask
* @param the integer to be parsed
* @param the number of bits to be parsed