summaryrefslogtreecommitdiffhomepage
path: root/asm/intel64/pop.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-11-13 17:50:02 +0100
committerRoland Reichwein <mail@reichwein.it>2020-11-13 17:50:02 +0100
commit009e450626194299ee4b5ccb8463ac64e127fde6 (patch)
treecb30ab5684f0af0061d042068cbf7e361584590f /asm/intel64/pop.h
parent97b8d5bb3c9fd96251e89539d122d2331a2a7925 (diff)
Added push and pop
Diffstat (limited to 'asm/intel64/pop.h')
-rw-r--r--asm/intel64/pop.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/asm/intel64/pop.h b/asm/intel64/pop.h
new file mode 100644
index 0000000..3bcd421
--- /dev/null
+++ b/asm/intel64/pop.h
@@ -0,0 +1,31 @@
+// Pop value from stack
+
+#pragma once
+
+#include <asm/assembler.h>
+
+class Op_pop: public Op
+{
+public:
+ Op_pop(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;
+};
+