summaryrefslogtreecommitdiffhomepage
path: root/asm/intel64/or.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-11-18 18:10:42 +0100
committerRoland Reichwein <mail@reichwein.it>2020-11-18 18:10:42 +0100
commit1937e301b6cd185c8ce907b9184142e82e76fda4 (patch)
treeea950d00019d4a3583fd8451fb3dc336347d4473 /asm/intel64/or.h
parent031bfef600e7021c8bd72e2e663f368e7386b131 (diff)
Implemented asm or
Diffstat (limited to 'asm/intel64/or.h')
-rw-r--r--asm/intel64/or.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/asm/intel64/or.h b/asm/intel64/or.h
new file mode 100644
index 0000000..3362634
--- /dev/null
+++ b/asm/intel64/or.h
@@ -0,0 +1,31 @@
+// OR
+
+#pragma once
+
+#include <asm/assembler.h>
+
+class Op_or: public Op
+{
+public:
+ Op_or(const Asm::Args& args);
+
+public:
+ std::vector<uint8_t> getCode() override
+ {
+ return machine_code;
+ }
+
+ size_t size() override
+ {
+ return machine_code.size();
+ }
+
+ bool optimize() override ///< returns true if changed
+ {
+ return false;
+ }
+
+protected:
+ std::vector<uint8_t> machine_code;
+};
+