From 32e19781c554c83643fcab4c4f39a6a552c367f5 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Tue, 10 Nov 2020 20:05:04 +0100 Subject: Implemented dec, mul, imul --- asm/intel64/imul.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 asm/intel64/imul.h (limited to 'asm/intel64/imul.h') diff --git a/asm/intel64/imul.h b/asm/intel64/imul.h new file mode 100644 index 0000000..387d87f --- /dev/null +++ b/asm/intel64/imul.h @@ -0,0 +1,31 @@ +// Multiply Signed Integer + +#pragma once + +#include + +class Op_imul: public Op +{ +public: + Op_imul(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