From 009e450626194299ee4b5ccb8463ac64e127fde6 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Fri, 13 Nov 2020 17:50:02 +0100 Subject: Added push and pop --- asm/intel64/pop.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 asm/intel64/pop.h (limited to 'asm/intel64/pop.h') 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 + +class Op_pop: public Op +{ +public: + Op_pop(Asm::Args& args); + +public: + std::vector 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 machine_code; +}; + -- cgit v1.2.3