summaryrefslogtreecommitdiffhomepage
path: root/asm/intel64/dec.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-11-10 20:05:04 +0100
committerRoland Reichwein <mail@reichwein.it>2020-11-10 20:05:04 +0100
commit32e19781c554c83643fcab4c4f39a6a552c367f5 (patch)
tree09f42ab252ef5c2204163c46b9d3a65548a19f8a /asm/intel64/dec.h
parent8f2e3e7af0360cca7f8918ae41cc573f8cd88d7f (diff)
Implemented dec, mul, imul
Diffstat (limited to 'asm/intel64/dec.h')
-rw-r--r--asm/intel64/dec.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/asm/intel64/dec.h b/asm/intel64/dec.h
new file mode 100644
index 0000000..293ba8d
--- /dev/null
+++ b/asm/intel64/dec.h
@@ -0,0 +1,31 @@
+// Decrement Register
+
+#pragma once
+
+#include <asm/assembler.h>
+
+class Op_dec: public Op
+{
+public:
+ Op_dec(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;
+};
+