From 7b49d17f90f26394a116348befb5edcdffcedcb6 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 17 Oct 2020 17:37:50 +0200 Subject: Add ret and int --- asm/operators.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 asm/operators.cpp (limited to 'asm/operators.cpp') 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 operator+(std::vector a, const std::vector& b) { + a.insert(a.end(), b.begin(), b.end()); + return a; +} + +std::vector operator+(std::vector a, const uint8_t& b) { + a.push_back(b); + return a; +} + -- cgit v1.2.3