diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-10-17 17:37:50 +0200 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-10-17 17:37:50 +0200 |
commit | 7b49d17f90f26394a116348befb5edcdffcedcb6 (patch) | |
tree | c32e76a9bea5851bfac92708fa626373573e4f06 /asm/operators.cpp | |
parent | f86999e137f43372236f2dccd1fe3572a85c0dcd (diff) |
Add ret and int
Diffstat (limited to 'asm/operators.cpp')
-rw-r--r-- | asm/operators.cpp | 13 |
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; +} + |