From 387af55e498970975d77291374e2f5be12a040bd Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Fri, 13 Nov 2020 09:34:45 +0100 Subject: Added intel sub, div, idiv --- asm/intel64/sub.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 asm/intel64/sub.h (limited to 'asm/intel64/sub.h') diff --git a/asm/intel64/sub.h b/asm/intel64/sub.h new file mode 100644 index 0000000..cc0dd81 --- /dev/null +++ b/asm/intel64/sub.h @@ -0,0 +1,31 @@ +// Integer Subtraction + +#pragma once + +#include + +class Op_sub: public Op +{ +public: + Op_sub(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