summaryrefslogtreecommitdiff
path: root/include/mlimits.h
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-09-09 12:41:49 -0400
committerFreya Murphy <freya@freyacat.org>2024-09-09 12:41:49 -0400
commit2ed275821676a0d5baea6c7fd843d71c72c2342c (patch)
tree480297f28e5c42d02a47b3b94027a7abe507d010 /include/mlimits.h
downloadmips-2ed275821676a0d5baea6c7fd843d71c72c2342c.tar.gz
mips-2ed275821676a0d5baea6c7fd843d71c72c2342c.tar.bz2
mips-2ed275821676a0d5baea6c7fd843d71c72c2342c.zip
initial mips32 (r2000ish mips32r6) assembler
Diffstat (limited to 'include/mlimits.h')
-rw-r--r--include/mlimits.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/mlimits.h b/include/mlimits.h
new file mode 100644
index 0000000..12318be
--- /dev/null
+++ b/include/mlimits.h
@@ -0,0 +1,21 @@
+/* Copyright (c) 2024 Freya Murphy */
+
+#ifndef __MLIMITS_H__
+#define __MLIMITS_H__
+
+/* Specifies how long a ident, register,
+ * instruction name, or any type of variable
+ * length text can be inside the lexer.
+ */
+#ifndef MAX_LEX_LENGTH
+#define MAX_LEX_LENGTH 24
+#endif
+
+/* Specifices how many max arguments a
+ * given directive can hold
+ */
+#ifndef MAX_ARG_LENGTH
+#define MAX_ARG_LENGTH 12
+#endif
+
+#endif /* __MLIMITS_H__ */