From a632cce380a853f5400111e19e1380982ed8a7fd Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 28 Nov 2020 12:38:49 +0100 Subject: Implemented MOVSX - Move With Sign-Extension --- asm/intel64/movsx.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 asm/intel64/movsx.h (limited to 'asm/intel64/movsx.h') diff --git a/asm/intel64/movsx.h b/asm/intel64/movsx.h new file mode 100644 index 0000000..a31f538 --- /dev/null +++ b/asm/intel64/movsx.h @@ -0,0 +1,31 @@ +// Move With Sign-Extension + +#pragma once + +#include + +class Op_movsx: public Op +{ +public: + Op_movsx(const 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