summaryrefslogtreecommitdiffhomepage
path: root/asm/operators.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'asm/operators.cpp')
-rw-r--r--asm/operators.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/asm/operators.cpp b/asm/operators.cpp
new file mode 100644
index 0000000..9f7d5d9
--- /dev/null
+++ b/asm/operators.cpp
@@ -0,0 +1,13 @@
+#include "operators.h"
+
+// binary code operators
+std::vector<uint8_t> operator+(std::vector<uint8_t> a, const std::vector<uint8_t>& b) {
+ a.insert(a.end(), b.begin(), b.end());
+ return a;
+}
+
+std::vector<uint8_t> operator+(std::vector<uint8_t> a, const uint8_t& b) {
+ a.push_back(b);
+ return a;
+}
+