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/push.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 asm/intel64/push.h (limited to 'asm/intel64/push.h') diff --git a/asm/intel64/push.h b/asm/intel64/push.h new file mode 100644 index 0000000..9525981 --- /dev/null +++ b/asm/intel64/push.h @@ -0,0 +1,31 @@ +// Push value onto stack + +#pragma once + +#include + +class Op_push: public Op +{ +public: + Op_push(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