aboutsummaryrefslogtreecommitdiff
path: root/params.h
diff options
context:
space:
mode:
Diffstat (limited to 'params.h')
-rw-r--r--params.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/params.h b/params.h
new file mode 100644
index 0000000..464068a
--- /dev/null
+++ b/params.h
@@ -0,0 +1,38 @@
+#pragma once
+
+#define SIZE 20
+
+enum class ins_t{
+ set, // #dst, $src
+ add, // #dst, $src
+ sub, // #dst, $src
+ comp, // $v1, $v2
+ trans, // $src, $dst
+ jump, // $pos
+ bjump, // $bank, $pos
+ die, // -
+ move, // -
+ turn, // $dir
+ scan, // #dst
+ create, // $is, $nbanks, $move
+
+ __num_instructions
+};
+
+namespace C {
+
+ extern const int numInstructions;
+
+ extern const int autoTimeout;
+ extern const int elimTrigger;
+
+ extern const int baseDuration[];
+ extern const int pen_transinstr;
+ extern const int pen_remote;
+ extern const int pen_createbank;
+ extern const int pen_createmobilemult;
+ extern const int pen_createmobile;
+ extern const int pen_createiset1;
+ extern const int pen_createiset2;
+
+}