summaryrefslogtreecommitdiffhomepage
path: root/asm/intel64/add.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-10-17 21:45:37 +0200
committerRoland Reichwein <mail@reichwein.it>2020-10-17 21:45:37 +0200
commit8f28495ab9a8ebf53868405541e907394895e51f (patch)
tree51b27870ed64522e1d54e4f031276e18fe181ee8 /asm/intel64/add.h
parent72ff79d76c7ec16ea1b95c72af0838f0e1150735 (diff)
Add add
Diffstat (limited to 'asm/intel64/add.h')
-rw-r--r--asm/intel64/add.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/asm/intel64/add.h b/asm/intel64/add.h
new file mode 100644
index 0000000..4c6b589
--- /dev/null
+++ b/asm/intel64/add.h
@@ -0,0 +1,31 @@
+// Integer Addition
+
+#pragma once
+
+#include <asm/assembler.h>
+
+class Op_add: public Op
+{
+public:
+ Op_add(AsmArgs& 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;
+};
+